Ghost/ghost/admin/app/styles/patterns/buttons.css

144 lines
2.8 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Buttons
/* ---------------------------------------------------------- */
.btn {
display: inline-block;
margin-bottom: 0;
padding: 9px 14px;
border: 1px solid transparent;
font-size: 1.1rem;
line-height: 1.428571429;
font-weight: 300;
text-align: center;
text-transform: uppercase;
text-shadow: none;
letter-spacing: 1px;
white-space: nowrap;
border-radius: var(--border-radius);
cursor: pointer;
background-image: none; /* Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 */
}
.btn:focus,
.btn:active:focus,
.btn.active:focus {
outline: thin dotted;
outline: 0px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.btn:hover,
.btn:focus {
color: var(--blue);
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
background-image: none;
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
box-shadow: none;
}
/* Link Buttons
/* ---------------------------------------------------------- */
/* Make a button look and behave like a link */
.btn-link {
color: var(--blue);
font-weight: normal;
cursor: pointer;
border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
color: var(--blue);
border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
text-decoration: underline;
background-color: transparent;
}
.btn-link[disabled]:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:hover,
fieldset[disabled] .btn-link:focus {
color: var(--midgrey);
text-decoration: none;
}
/* Minor Buttons
/* ---------------------------------------------------------- */
/* Add this class to buttons with a small/insignificant action
for example a "cancel" button. Style is de-emphasised. */
.btn-minor {
text-transform: none;
letter-spacing: 0;
font-size: 1.2rem;
padding: 8px 14px;
}
/* Button Sizes
/* ---------------------------------------------------------- */
.btn-lg {
padding: 12px 18px;
font-size: 1.4rem;
line-height: 1.33;
border-radius: 4px;
}
.btn-sm {
padding: 7px 10px;
font-size: 1rem;
line-height: 1.5;
border-radius: 2px;
}
/* Block Button (Fluid width)
/* ---------------------------------------------------------- */
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}