Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Last active August 29, 2015 14:17
Show Gist options
  • Save kasperpeulen/e6c2190d816eb01c0e33 to your computer and use it in GitHub Desktop.
Save kasperpeulen/e6c2190d816eb01c0e33 to your computer and use it in GitHub Desktop.
warningbutton
<button type="button" id="runbutton">
<svg width="18" height="18" viewBox="0 0 24 24" style="vertical-align: text-bottom;">
<path d="M8 5v14l11-7z"></path>
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="18" height="18" viewBox="0 0 24 24" style="vertical-align: text-bottom;">
<path fill="#4CAF50" d="M8 5v14l11-7z"></path>
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="18" height="18" style="vertical-align: text-bottom;" viewBox="0 0 24 24">
<path d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"></path>
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="18" height="18" style="vertical-align: text-bottom;" viewBox="0 0 24 24">
<path fill="#F7977A" d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"></path>
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="18" height="18" style="vertical-align: text-bottom;" viewBox="0 0 24 24">
<path fill="#FFF79A" d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"></path>
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="17" height="17" viewBox="0 0 24 24" style="padding:1px; vertical-align: text-bottom;">
<path d="M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M13,13V7H11V13H13M13,17V15H11V17H13Z" />
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="17" height="17" viewBox="0 0 24 24" style="padding:1px; vertical-align: text-bottom;">
<path fill="#F7977A" d="M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M13,13V7H11V13H13M13,17V15H11V17H13Z" />
</svg>
Run
</button>
<button type="button" id="runbutton">
<svg width="17" height="17" viewBox="0 0 24 24" style="padding:1px; vertical-align: text-bottom;">
<path fill="#FFF79A" d="M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M13,13V7H11V13H13M13,17V15H11V17H13Z" />
</svg>
Run
</button>
<button class="error" type="button" id="runbutton">
<svg width="17" height="17" viewBox="0 0 24 24" style="padding: 1px; vertical-align: text-bottom;">
<path d="M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M13,13V7H11V13H13M13,17V15H11V17H13Z" />
</svg>
Run
</button>
<button class="error" type="button" id="runbutton">
<svg width="18" height="18" style="position:relative; padding: 0px; vertical-align: text-bottom;" viewBox="0 0 24 24">
<path d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"></path>
</svg>
Run
</button>
void main(){}
button {
display:block;
margin-top: 5px;
outline: none;
color: #aaa;
fill: #aaa;
border: 1px solid #222;
border-radius: 2px;
font-family: 'Roboto', sans-serif;
font-size: 12pt;
line-height: 18px;
height: 24px;
cursor: pointer;
padding: 2px 6px;
transition: 100ms;
min-width: 75px;
background-color: #444;
background-image: linear-gradient(to bottom, #444, #333);
}
button.error {
background-image: linear-gradient(to bottom, #ac6356, #673a33);
color: #222;
fill: #222;
}
button:hover {
color: #fff;
fill: #fff;
}
button:active {
background: rgba(255, 255, 255, 0.2);
}
button[disabled] {
color: #555;
fill: #555;
pointer-events: none;
border-color: #272727;
background-color: #3b3b3b;
background-image: none;
}
#runbutton {
padding-right: 11px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment