nightTab/css/button.css

132 lines
2.7 KiB
CSS
Raw Normal View History

2018-12-26 08:45:53 +01:00
button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
background-color: var(--gray-02);
padding: 0.25em 1em;
margin: 0 0 1em 0;
color: var(--gray-16);
font-size: 1em;
font-family: var(--font-regular);
min-height: 2.5em;
line-height: 1;
border: 0;
2018-12-26 18:43:38 +01:00
border-top-width: 3px;
border-bottom-width: 3px;
2018-12-26 08:45:53 +01:00
border-style: solid;
border-color: transparent;
border-radius: var(--radius);
text-align: center;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
box-shadow: none;
transition: all var(--animation-speed-medium) ease-in-out;
display: inline-flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
2018-12-26 18:43:38 +01:00
button:hover,
button:focus,
.button:hover,
.button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
background-color: var(--gray-03);
2018-12-26 08:45:53 +01:00
border-bottom-color: rgb(var(--accent));
2018-12-26 18:43:38 +01:00
color: var(--white);
outline: 0;
}
button:active,
.button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
background-color: var(--gray-04);
color: var(--white);
transition: none;
}
button[disabled],
.button[disabled],
button[disabled]:hover,
.button[disabled]:hover,
button[disabled]:focus,
.button[disabled]:focus,
button[disabled]:active,
.button[disabled]:active {
background-color: var(--gray-02);
border-color: transparent;
color: var(--gray-04);
cursor: default;
2018-12-26 08:45:53 +01:00
}
button [class^="icon-"],
button [class*=" icon-"],
.button [class^="icon-"],
.button [class*=" icon-"] {
font-size: 1.5em;
line-height: 1;
}
2018-12-26 18:43:38 +01:00
.button.active {
border-bottom-color: rgb(var(--accent));
}
2018-12-26 08:45:53 +01:00
.button-small {
font-size: 0.8em;
}
.button-group {
margin: 0 0 1em 0;
display: flex;
justify-content: center;
align-items: stretch;
}
.button-group button,
.button-group .button {
margin: 0;
border-radius: 0;
}
.button-group button:first-child,
.button-group .button:first-child {
border-radius: var(--radius) 0 0 var(--radius);
}
.button-group button:last-child,
.button-group .button:last-child {
border-radius: 0 var(--radius) var(--radius) 0;
}
button [class^="button-"],
button [class*=" button-"],
.button [class^="button-"],
.button [class*=" button-"] {
margin-left: 0.25em;
margin-right: 0.25em;
}
button [class^="button-"]:first-child,
button [class*=" button-"]:first-child,
.button [class^="button-"]:first-child,
.button [class*=" button-"]:first-child {
margin-left: 0;
}
button [class^="button-"]:last-child,
button [class*=" button-"]:last-child,
.button [class^="button-"]:last-child,
.button [class*=" button-"]:last-child {
margin-right: 0;
}