Files
FreshRSS/p/themes/Mapco/_forms.scss
Alexandre Alapetite 5a891dc0e4 Update dev dependencies stylelint SASS (#4173)
* Update dev dependencies stylelint SASS
Major update for stylelint with breaking changes
https://stylelint.io/migration-guide/to-14/

Applied automatic SASS migration to current syntax
https://sass-lang.com/documentation/cli/migrator#migrations

And a few manual fixes such as:
https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation/README.md

Other dev dependencies are minor updates.

* RTLCSS

* Fix color-hex-length bug

* Implement make bin/composer

* Update git hash
2022-02-04 15:41:51 +01:00

163 lines
2.4 KiB
SCSS

@use "mixins";
@use "variables";
/* btns */
.btn {
margin: 0;
padding: 0.5rem 1.5rem;
background: variables.$grey-lighter;
display: inline-block;
color: variables.$grey-dark;
font-size: 1rem;
border: none;
border-radius: 5px;
min-height: 38px;
min-width: 15px;
line-height: 25px;
vertical-align: middle;
cursor: pointer;
overflow: hidden;
@include mixins.transition(all, 0.15s, ease-in-out);
&.btn-important {
background: variables.$main-first;
color: variables.$white;
// @include transition(all, 0.15s, ease-in-out);
&:hover,
&:active {
background: variables.$main-first-alt;
}
}
&.btn-attention {
background: variables.$alert-bg;
color: #fff;
&:hover,
&:active {
background: variables.$alert-text;
}
}
&:hover {
text-decoration: none;
}
}
a.btn {
min-height: 25px;
line-height: 25px;
}
/*=== Forms */
legend {
margin: 2rem 0 1rem 0;
padding: 0;
display: inline-block;
width: auto;
font-size: 1rem;
clear: both;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
}
label {
min-height: 25px;
padding: 5px 0;
cursor: pointer;
color: variables.$grey-dark;
}
textarea {
max-width: 100%;
width: 360px;
height: 100px;
}
input, select, textarea, button {
padding: 5px 10px;
background: variables.$white;
color: variables.$grey-dark;
font-family: "lato", "Helvetica", "Arial", sans-serif;
font-size: 1rem;
border: 1px solid variables.$grey-light;
border-radius: 2px;
min-height: 25px;
line-height: 25px;
vertical-align: middle;
}
option {
padding: 0 .5em;
}
input:focus, select:focus, textarea:focus {
color: variables.$main-font-color;
border-color: variables.$main-first;
}
input:invalid, select:invalid {
color: variables.$alert-bg;
border-color: variables.$alert-bg;
box-shadow: none;
}
input:disabled, select:disabled {
background: variables.$grey-light;
}
input.extend {
transition: width 200ms linear;
}
.form-group {
padding: 5px;
border-radius: 3px;
&::after {
content: "";
display: block;
clear: both;
}
&:hover {
// background: #fff;
// border: 1px solid #eee;
// border-radius: 3px;
// border: 1px solid #eee;
}
.group-name {
padding: 10px 0;
text-align: right;
}
.group-controls {
min-height: 25px;
padding: 5px 0;
}
.group-controls .control {
line-height: 2.0em;
}
&.form-actions {
margin: 15px 0 25px;
padding: 5px 0;
// background: #333;
}
&.form-actions .btn {
margin: 0 0.5rem 0 0;
}
}