Files
mixtape/zero.Web.UI/Sass/Core/_forms.scss
T

135 lines
2.4 KiB
SCSS
Raw Normal View History

2020-03-27 01:17:22 +01:00
2020-04-08 15:16:05 +02:00
::placeholder
{
color: var(--color-fg-dim);
2020-04-08 15:16:05 +02:00
}
2020-04-21 16:23:43 +02:00
input[type="text"], input[type="color"], input[type="date"], input[type="datetime"], input[type="email"], input[type="file"], input[type="month"], input[type="number"],
input[type="password"], input[type="range"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"],
2020-05-04 16:00:39 +02:00
textarea, .ui-native-select
2020-03-27 01:17:22 +01:00
{
@extend %font;
2020-08-16 15:51:12 +02:00
background: var(--color-bg-dim);
//border: 1px solid var(--color-bg-bright-three);
2020-08-16 15:51:12 +02:00
border: none;
2020-03-27 01:17:22 +01:00
font-size: $font-size;
display: inline-block;
2020-04-25 19:38:45 +02:00
height: 42px;
2020-04-11 13:59:54 +02:00
padding: 6px 12px;
2020-03-27 01:17:22 +01:00
line-height: 1.5;
color: var(--color-fg);
border-radius: var(--radius);
2020-03-27 01:17:22 +01:00
vertical-align: middle;
box-sizing: border-box;
width: 100%;
2020-03-30 17:11:56 +02:00
&:focus
{
2020-06-24 13:00:50 +02:00
/*border-color: var(--color-accent-info-bg);
box-shadow: 0 0 0 4px var(--color-accent-info-bg);*/
2020-03-30 17:11:56 +02:00
}
2020-04-28 14:51:17 +02:00
&[disabled], &[readonly]
{
border-color: transparent !important;
padding: 0;
height: auto;
}
2020-05-04 14:13:03 +02:00
}
textarea
{
resize: vertical;
min-height: 80px;
2020-05-04 16:00:39 +02:00
}
.ui-native-select
{
position: relative;
2020-06-08 13:14:04 +02:00
font-size: var(--font-size);
2020-05-04 16:00:39 +02:00
select
{
@extend %font;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
padding-left: 9px;
2020-05-04 16:00:39 +02:00
-webkit-appearance: none;
border: none;
2020-06-08 13:14:04 +02:00
font-size: var(--font-size);
2020-07-20 12:02:02 +02:00
background: none;
2020-08-16 15:51:12 +02:00
color: var(--color-fg);
2020-05-04 16:00:39 +02:00
}
&:after
{
@extend %font-icon;
content: "\e842";
position: absolute;
right: 12px;
top: 0;
height: 42px;
line-height: 40px;
}
2020-06-29 15:36:02 +02:00
}
.ui-native-check
{
position: relative;
top: 1px;
font-size: var(--font-size);
cursor: pointer;
display: flex;
align-items: center;
line-height: 1;
input
{
width: 0;
height: 0;
opacity: 0;
position: absolute;
left: 0;
overflow: hidden;
visibility: hidden;
-webkit-appearance: none;
border: none;
}
}
.ui-native-check-toggle
{
display: inline-block;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
border-radius: var(--radius);
2020-08-18 11:25:10 +02:00
background: var(--color-bg-bright-three);
2020-06-29 15:36:02 +02:00
margin-right: 10px;
position: relative;
top: -1px;
&:before
{
content: "\e83f";
@extend %font-icon;
color: transparent;
font-size: var(--font-size-xs);
}
input:checked ~ &
{
2020-08-16 15:51:12 +02:00
background: var(--color-primary);
2020-06-29 15:36:02 +02:00
&:before
{
2020-08-16 15:51:12 +02:00
color: var(--color-primary-fg);
2020-06-29 15:36:02 +02:00
}
}
2020-04-08 15:16:05 +02:00
}