tornado-initiation-ui/assets/styles/components/_button.scss

98 lines
1.6 KiB
SCSS
Raw Normal View History

2020-10-12 19:41:52 +02:00
.button {
font-weight: 700;
2020-11-21 11:46:25 +01:00
&--active {
&::after {
content: '';
2020-12-09 14:38:42 +01:00
margin-left: 0.15rem;
margin-top: -0.55rem;
width: 4px;
height: 4px;
background-color: $primary;
border-radius: 100%;
box-shadow: 0 0 1px 1px $primary;
2020-11-21 11:46:25 +01:00
}
}
2020-11-03 07:54:19 +01:00
&.is-icon {
width: 1.5rem;
height: 1.5rem;
padding: 0;
background-color: transparent;
border: none;
.icon {
height: 1.5rem;
width: 1.5rem;
}
.trnd {
width: 100%;
height: 100%;
2020-12-09 14:38:42 +01:00
background-color: #6b6b6b;
2020-11-03 07:54:19 +01:00
}
2020-12-09 14:38:42 +01:00
&:focus:not(:active),
&.is-focused:not(:active) {
2020-11-03 07:54:19 +01:00
box-shadow: none;
}
}
2020-10-12 19:41:52 +02:00
&.is-primary {
&.is-outlined {
background-color: #182922;
}
.trnd {
background-color: $primary;
}
2020-12-09 14:38:42 +01:00
&:hover,
&:focus {
2020-10-12 19:41:52 +02:00
.trnd {
background-color: $primary-invert;
}
}
&[disabled] {
.trnd {
background-color: $primary;
}
}
}
.icon {
&:first-child:not(:last-child) {
2020-10-13 09:49:08 +02:00
margin-left: -0.15em;
2020-12-09 14:38:42 +01:00
margin-right: 0.5em;
}
2020-10-12 19:41:52 +02:00
&:last-child:not(:first-child) {
margin-left: 0.5em;
2020-12-09 14:38:42 +01:00
margin-right: -0.15em;
}
2020-10-12 19:41:52 +02:00
&:first-child:last-child {
margin-left: 0;
2020-12-09 14:38:42 +01:00
margin-right: 0;
}
2020-10-12 19:41:52 +02:00
}
&:not(.is-small) {
span:not(.icon):not(.b-tooltip):first-child:last-child {
2020-12-09 14:38:42 +01:00
padding: 0 0.5rem;
2020-10-12 19:41:52 +02:00
}
}
}
2020-11-03 07:54:19 +01:00
.buttons {
.button.is-icon:not(:last-child):not(.is-fullwidth) {
margin-right: 1.25rem;
}
.break {
2020-12-09 14:38:42 +01:00
margin: 0 1.25rem 0.5rem 0;
2020-11-03 07:54:19 +01:00
width: 1px;
align-self: stretch;
2020-12-09 14:38:42 +01:00
background-color: #2a2a2a;
2020-11-03 07:54:19 +01:00
}
}