mirror of https://github.com/hashicorp/consul
95 lines
1.5 KiB
SCSS
95 lines
1.5 KiB
SCSS
|
%toggle {
|
||
|
float: right;
|
||
|
margin-bottom: 0 !important;
|
||
|
}
|
||
|
%form-element > span {
|
||
|
display: block;
|
||
|
margin-bottom: 0.5em;
|
||
|
}
|
||
|
%form-element textarea {
|
||
|
display: block;
|
||
|
max-width: 100%;
|
||
|
min-width: 100%;
|
||
|
min-height: 70px;
|
||
|
padding: 0.625em 15px;
|
||
|
resize: vertical;
|
||
|
}
|
||
|
%form-element [type='text'],
|
||
|
%form-element [type='password'] {
|
||
|
max-width: 100%;
|
||
|
width: 100%;
|
||
|
display: inline-flex;
|
||
|
justify-content: flex-start;
|
||
|
height: 2.25em;
|
||
|
}
|
||
|
%form-element,
|
||
|
%form-element > em {
|
||
|
display: block;
|
||
|
}
|
||
|
%form-element > em {
|
||
|
margin-left: 8px;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
%form-element,
|
||
|
%radio-group {
|
||
|
margin-bottom: 1.55em;
|
||
|
}
|
||
|
%form-element > span {
|
||
|
margin-bottom: 0.4em !important;
|
||
|
}
|
||
|
%radio-group {
|
||
|
overflow: hidden;
|
||
|
padding-left: 1px;
|
||
|
}
|
||
|
%radio-group label {
|
||
|
float: left;
|
||
|
}
|
||
|
%radio-group label:not(:last-child) {
|
||
|
margin-right: 25px;
|
||
|
}
|
||
|
%radio-group label > span {
|
||
|
margin-left: 1em;
|
||
|
margin-top: 0.2em;
|
||
|
float: right;
|
||
|
}
|
||
|
%radio-group label,
|
||
|
%radio-group label > span {
|
||
|
margin-bottom: 0 !important;
|
||
|
}
|
||
|
%form-element [type='text'],
|
||
|
%form-element [type='password'] {
|
||
|
padding: 17px 15px;
|
||
|
}
|
||
|
%toggle {
|
||
|
position: relative;
|
||
|
}
|
||
|
%toggle input {
|
||
|
display: none;
|
||
|
}
|
||
|
%toggle span {
|
||
|
display: inline-block;
|
||
|
padding-left: 25px;
|
||
|
}
|
||
|
%toggle span::before,
|
||
|
%toggle span::after {
|
||
|
position: absolute;
|
||
|
display: block;
|
||
|
content: '';
|
||
|
top: 50%;
|
||
|
}
|
||
|
%toggle span::before {
|
||
|
left: 0px;
|
||
|
width: 20px;
|
||
|
height: 12px;
|
||
|
margin-top: -8px;
|
||
|
}
|
||
|
%toggle span::after {
|
||
|
left: 2px;
|
||
|
margin-top: -6px;
|
||
|
width: 8px;
|
||
|
height: 8px;
|
||
|
}
|
||
|
%toggle input:checked + span::after {
|
||
|
left: 10px;
|
||
|
}
|