2019-12-19 23:09:23 +01:00
|
|
|
.button {
|
|
|
|
transition: all $transition;
|
|
|
|
border: 0;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 0.85rem;
|
|
|
|
font-weight: bold;
|
2020-04-26 01:11:34 +02:00
|
|
|
height: $button-height;
|
2021-01-23 18:18:09 +01:00
|
|
|
box-shadow: $shadow-sm;
|
2019-12-19 23:09:23 +01:00
|
|
|
|
|
|
|
&.is-hovered,
|
|
|
|
&:hover {
|
2021-01-23 18:18:09 +01:00
|
|
|
box-shadow: $shadow-md;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
&.fullheight {
|
2019-12-19 23:09:23 +01:00
|
|
|
padding-right: 7px;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active,
|
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:focus:not(:active) {
|
2021-01-23 18:18:09 +01:00
|
|
|
box-shadow: $shadow-xs !important;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
2020-08-01 15:17:10 +02:00
|
|
|
&.is-primary.is-outlined:hover {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
&.is-small {
|
|
|
|
border-radius: $radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-11 12:13:35 +02:00
|
|
|
.field.has-addons .button {
|
|
|
|
height: 2.5rem;
|
2021-01-30 17:17:04 +01:00
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field.has-addons .select select {
|
|
|
|
margin-right: 0;
|
2020-10-11 12:13:35 +02:00
|
|
|
}
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
.input,
|
|
|
|
.textarea {
|
|
|
|
transition: all $transition;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&.is-active,
|
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $name, $pair in $colors {
|
|
|
|
$color: nth($pair, 1);
|
|
|
|
$color-invert: nth($pair, 2);
|
|
|
|
|
|
|
|
&.is-#{$name} {
|
|
|
|
&.is-active,
|
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:focus:not(:active) {
|
2021-01-23 18:18:09 +01:00
|
|
|
border-color: $color;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select:after {
|
2021-01-23 18:18:09 +01:00
|
|
|
margin-top: -0.575rem;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.select select {
|
|
|
|
border-width: $thickness;
|
|
|
|
|
|
|
|
&:not([multiple]) {
|
2021-01-23 18:18:09 +01:00
|
|
|
height: calc(2.25rem + #{$thickness});
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-active,
|
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:focus:not(:active) {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-06 23:36:31 +01:00
|
|
|
.field.has-addons .control .select select {
|
|
|
|
height: 100%;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.control.has-icons-left .icon, .control.has-icons-right .icon {
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons icons
|
|
|
|
.button .icon.is-small {
|
|
|
|
margin-right: 0.05rem !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// menu buttons
|
|
|
|
.button-bottom {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
.button-right {
|
2019-12-19 23:09:23 +01:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2020-01-31 11:05:53 +01:00
|
|
|
.control.has-icons-left .icon, .control.has-icons-right .icon {
|
|
|
|
z-index: 4;
|
|
|
|
}
|
2020-04-26 01:11:34 +02:00
|
|
|
|
|
|
|
// Contenteditable form
|
2020-09-05 22:35:52 +02:00
|
|
|
.input.title {
|
2020-04-26 01:11:34 +02:00
|
|
|
font-size: 1.8rem;
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
font-weight: 400 !important;
|
|
|
|
background: transparent;
|
|
|
|
border-color: transparent;
|
2021-01-23 18:18:09 +01:00
|
|
|
margin: 0 .3rem;
|
2020-04-27 13:03:47 +02:00
|
|
|
height: auto;
|
2021-01-23 18:18:09 +01:00
|
|
|
padding: .3rem;
|
2020-04-26 01:11:34 +02:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: $input-background-color;
|
|
|
|
border-color: $input-focus-border-color;
|
|
|
|
}
|
2020-11-28 15:30:34 +01:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
&:focus, &:hover {
|
|
|
|
background: transparent !important;
|
|
|
|
border-color: transparent !important;
|
|
|
|
cursor: default !important;
|
|
|
|
}
|
|
|
|
}
|
2020-04-26 01:11:34 +02:00
|
|
|
}
|
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
h1, h2, h3 {
|
2020-04-26 01:11:34 +02:00
|
|
|
.input.title {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|