cssOMS/layout.scss
Dennis Eichhorn 85ef1f8ccb bump
2024-02-28 05:09:14 +00:00

122 lines
1.8 KiB
SCSS
Executable File

.ipt-wrap {
display: table;
vertical-align: top;
box-sizing: border-box;
.ipt-start, .ipt-second, .ipt-first {
display: table-cell;
vertical-align: inherit;
}
.ipt-first {
width: 100%;
}
.ipt-second {
padding-left: .75rem;
}
}
.flex-line {
display: flex;
flex-direction: row;
& + * {
margin-top: .75rem;
}
> div {
flex: 1;
&:nth-child(n+2) {
padding-left: .75rem;
}
}
> div.fixed {
flex: 0;
flex-basis: auto;
}
}
div.sticky, section.sticky {
position: sticky;
top: 1rem;
}
.inline {
display: inline;
}
.form-group {
display: flex;
flex-direction: row;
flex-wrap: wrap;
> *:not(label) {
flex: 0 1 auto;
}
& + * {
margin-top: .75rem;
}
label {
font-size: .9rem;
flex: 0 0 100%;
display: inline-flex;
align-items: center;
&> i {
margin-right: .5rem;
}
}
span.checkbox+span.checkbox {
margin-left: 1.5rem;
}
.input-control {
flex: 1;
display: flex;
flex-direction: row;
flex-wrap: wrap;
& +.input-control {
margin-left: 1rem;
}
}
textarea, .contenteditable {
height: 8rem;
}
}
@media (max-width: 768px) {
.form-group, .flex-line {
flex-direction: column;
}
.form-group .input-control+.input-control {
margin-top: 1rem;
margin-left: 0;
}
}
@each $tuple in
'wf-100' 100%, 'wf-80' 80%, 'wf-20' 20%, 'wf-66' 66.66%,
'wf-50' 50%, 'wf-33' 33.33%, 'wf-25' 25%, 'wf-75' 75% {
.#{nth($tuple, 1)} {
width: #{nth($tuple, 2)};
}
}
.spacer {
padding: 5px;
}
.resizable {
resize: both;
overflow: auto;
}