2019-11-25 17:43:25 +00:00
|
|
|
@import './skin';
|
|
|
|
@import './layout';
|
2023-02-22 21:05:15 +00:00
|
|
|
%form h2,
|
|
|
|
.modal-dialog-body h2 {
|
2021-04-22 11:16:56 +00:00
|
|
|
@extend %h200;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
/* TODO: This is positioning the element */
|
|
|
|
/* probably should be in a special %form class*/
|
|
|
|
%form-element {
|
|
|
|
@extend %form-row;
|
|
|
|
}
|
|
|
|
%form-element > span {
|
|
|
|
@extend %form-element-label;
|
|
|
|
}
|
2020-05-11 15:37:11 +00:00
|
|
|
%form button + em,
|
2019-11-25 17:43:25 +00:00
|
|
|
%form-element > em {
|
|
|
|
@extend %form-element-note;
|
|
|
|
}
|
2021-04-22 11:16:56 +00:00
|
|
|
%form-element-note > code {
|
|
|
|
@extend %inline-code;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%form-element-error > strong {
|
|
|
|
@extend %inline-alert-error;
|
|
|
|
}
|
|
|
|
%form-element [type='text'],
|
|
|
|
%form-element [type='password'],
|
|
|
|
%form-element textarea {
|
|
|
|
@extend %form-element-text-input;
|
|
|
|
}
|
|
|
|
%form-element-text-input:hover {
|
|
|
|
@extend %form-element-text-input-hover;
|
|
|
|
}
|
|
|
|
%form-element-text-input:focus {
|
|
|
|
@extend %form-element-text-input-focus;
|
|
|
|
}
|
2021-06-23 08:19:35 +00:00
|
|
|
|
|
|
|
/* project level*/
|
|
|
|
label span {
|
|
|
|
@extend %user-select-none;
|
|
|
|
}
|
|
|
|
.has-error {
|
|
|
|
@extend %form-element-error;
|
|
|
|
}
|
|
|
|
// TODO: float right here is too specific, this is currently used just for the role/policy selectors
|
2023-02-22 21:05:15 +00:00
|
|
|
.type-dialog {
|
2021-06-23 08:19:35 +00:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
.type-toggle {
|
|
|
|
@extend %form-element, %sliding-toggle;
|
|
|
|
}
|
|
|
|
.checkbox-group {
|
|
|
|
@extend %checkbox-group;
|
|
|
|
}
|
|
|
|
%main-content form {
|
|
|
|
@extend %form;
|
|
|
|
}
|
|
|
|
span.label {
|
|
|
|
@extend %form-element-label;
|
|
|
|
}
|
|
|
|
%form table,
|
|
|
|
%radio-group,
|
2021-11-16 15:36:54 +00:00
|
|
|
%checkbox-group {
|
2021-06-23 08:19:35 +00:00
|
|
|
@extend %form-row;
|
|
|
|
}
|
|
|
|
%radio-group label,
|
|
|
|
%main-content .type-select,
|
|
|
|
%main-content .type-password,
|
|
|
|
%main-content .type-text {
|
|
|
|
@extend %form-element;
|
|
|
|
}
|
2023-02-22 21:05:15 +00:00
|
|
|
%main-content .type-select > span,
|
|
|
|
%main-content .type-password > span,
|
|
|
|
%main-content label.type-text > span {
|
|
|
|
line-height: 2.2em;
|
|
|
|
}
|
2021-06-23 08:19:35 +00:00
|
|
|
%app-view-content form:not(.filter-bar) [role='radiogroup'],
|
|
|
|
%modal-window [role='radiogroup'] {
|
|
|
|
@extend %radio-group;
|
|
|
|
}
|
|
|
|
%sliding-toggle + .checkbox-group {
|
|
|
|
margin-top: -1em;
|
|
|
|
}
|