fragmentize CSS for easier management

This commit is contained in:
buzz-lightsnack-2007 2024-04-23 13:58:14 +08:00
parent b3c71efab3
commit 48e3a19881
7 changed files with 254 additions and 254 deletions

78
styles/layouts/all.css Normal file
View file

@ -0,0 +1,78 @@
@import url("/styles/layouts/all.inputs.css");
fieldset {
padding: 2em !important;
border-radius: 4px;
}
fieldset > legend {
padding: 0.5em !important;
}
fieldset > ul {
margin-top: 0em !important;
}
fieldset > ul li {
padding-top: 0em !important;
}
summary {
list-style-type: none;
}
progress {
width: 100%;
}
main.container > * {
padding-bottom: .5em;
padding-top: .5em;
}
.field-row {
display: flex;
flex-direction: row;
align-items: center;
}
.dual > * > *:not(nav) {
margin: 1em;
}
.dual .container {
width: 90% !important;
margin-left: auto;
margin-right: auto;
}
nav .input-field label {
left: auto !important;
}
.input-field > button:not(:last-child) {
margin-right: 0.5em;
}
.nav-wrapper {
position: sticky;
z-index: 10;
}
nav ul:not(.dropdown-content) > li > a {
height: 100%;
}
@media only screen and (min-width: 601px) {
.dual .container {
width: 80% !important;
}
}
@media only screen and (min-width: 992px) {
body:has(.sidenav-fixed) [works-sidebar] {
display: none;
}
ul.sidenav-fixed + * {
padding-left: 300px;
}
}

View file

@ -0,0 +1,45 @@
form ul > li:has(input[type="checkbox"]),
ul.input-field > li {
list-style-type: none;
}
form ul:has(li input[type="checkbox"]),
ul.input-field {
padding-left: 0;
}
.input-group {
margin-block-start: 1em !important;
margin-block-end: 1em !important;
}
.input-group:not(:has(input)) {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.input-group side:not(:has(input)) {
display: flex;
flex-direction: row;
justify-content: end;
align-items: center;
}
textarea {
resize: vertical;
}
textarea:focus {
outline: none;
}
textarea[type="code"] {
font-family: monospace !important;
}
.input-field {
margin-bottom: .25em;
}