upd: styles

split functionality to 3 different stylesheets
This commit is contained in:
2026-06-13 12:15:55 -04:00
parent c34ccfc3e8
commit a1a9a57048
3 changed files with 48 additions and 823 deletions
+22 -379
View File
@@ -1,271 +1,10 @@
@import url(mobile-style.css);
@import url(mid-screen-style.css);
@import url(lg-screen-style.css);
@import url(sidebar-style.css);
@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");
/* Global style settings */
@media screen and (max-width: 1050px) {
#sidebar {
display: none;
}
.note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
width: 100vw;
grid-template-columns: 1fr;
grid-template-rows: 50px 50% 1fr;
gap: 5px 0;
grid-auto-flow: column;
grid-template-areas: "mobile-note-header" "notes" "ref-text";
}
.container .ref-text {
height: 99%;
width: 98vw;
margin-left: 1vw;
}
.ref-header, .ref-btn-header, .ref-btn, .note-header, .fields-container {
display: none;
}
.mobile-note-header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.mobile-note-header h2 {
margin: 0 10px;
}
.mobile-note-header button {
margin: 0 10px;
}
.notes {
width: 98vw;
margin-left: 1vw;
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 1fr 50px;
gap: 2px 0;
grid-template-areas: "note-text" "fields-container";
grid-area: notes;
}
.notes .fields-container {
justify-content: space-between;
flex-wrap: wrap;
width: 99.5%;
}
.notes .fields-container input[type=text], .notes .fields-container select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--border);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 50px;
max-width: 200px;
}
.notes .note-text {
height: 100%;
width: 100%;
}
.notes .note-text textarea {
height: 100%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: "Roboto Sans";
padding: 0 5px;
}
}
@media screen and (min-width: 1051px) and (max-width: 1079px) {
#sidebar {
display: none;
}
.mobile-note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
grid-template-columns: 60px 35% 1fr;
grid-template-rows: 60px 1.8fr;
gap: 5px 5px;
grid-auto-flow: row;
grid-template-areas: "ref-btn-header ref-header note-header" "ref-btn ref-text notes";
}
.container .fields-container {
display: none;
}
.bottom-row {
height: calc(100vh - 75px);
}
.notes {
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 75px 1fr;
gap: 2px 0px;
grid-template-areas: "fields-container" "note-text";
grid-area: notes;
}
.notes .fields-container {
justify-content: space-evenly;
flex-wrap: wrap;
width: 99.5%;
}
.notes .fields-container input[type=text], .notes .fields-container select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 50px;
max-width: 200px;
}
.notes .note-text {
height: 100%;
width: 98.5%;
}
.notes .note-text textarea {
height: 100%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: "Roboto Sans";
padding: 0 5px;
}
.note-header, .ref-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.note-header h2, .ref-header h2 {
margin: 0;
}
}
@media screen and (min-width: 1080px) {
.mobile-note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
grid-template-columns: 60px 35% 0.995fr;
grid-template-rows: 60px 1.8fr;
gap: 5px 5px;
grid-auto-flow: row;
grid-template-areas: "ref-btn-header ref-header note-header" "ref-btn ref-text notes";
}
.container .fields-container {
display: none;
}
.bottom-row {
height: calc(100vh - 75px);
}
.notes {
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 75px 1fr;
gap: 2px 0px;
grid-template-areas: "fields-container" "note-text";
grid-area: notes;
}
.notes .fields-container {
justify-content: space-evenly;
flex-wrap: wrap;
width: 99.5%;
}
.notes .fields-container input[type=text], .notes .fields-container select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 2;
min-width: 50px;
max-width: 200px;
}
.notes .note-text {
height: 100%;
width: 98.5%;
}
.notes .note-text textarea {
height: 99%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: "Roboto Sans";
padding: 0 5px;
}
.note-header, .ref-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.note-header h2, .ref-header h2 {
margin: 0;
}
.note-header select, .ref-header select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 2;
min-width: 50px;
max-width: 200px;
margin-right: 3px;
}
}
#previewBtn.active,
#show-hide-btn.active,
.ref-list button.active,
@@ -280,7 +19,18 @@ input:focus {
}
#save-check {
display: none;
color: var(--success);
opacity: 0;
font-size: 20pt;
margin-left: 15px;
}
#save-check.saving {
color: var(--warning);
opacity: 1;
}
#save-check.error {
color: var(--error);
opacity: 1;
}
#ui-datepicker-div {
@@ -499,122 +249,15 @@ input:checked + .slider:before {
display: none;
}
/**
* Sidebar
*/
#sidebar {
transition: margin-left 0.5s ease, box-shadow 0.5s ease;
background-color: var(--background);
font-size: 0.9em;
position: relative;
width: 25em;
border-right: solid 2px var(--border);
flex-grow: 0;
flex-shrink: 0;
}
#sidebar .toggle {
text-decoration: none;
transition: left 0.5s ease;
border: 0;
display: block;
height: 4.5em;
left: 25em;
line-height: 4.5em;
outline: 0;
overflow: hidden;
position: absolute;
text-align: center;
text-indent: -15em;
white-space: nowrap;
top: 0;
width: 6em;
z-index: 10000;
}
#sidebar > .inner {
position: relative;
width: 25em;
}
#sidebar > .inner > * {
border-bottom: solid 2px var(--medium);
margin: 0 0 3.5em 0;
h2.dirty {
color: darkorange;
}
.inner {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: stretch;
align-content: flex-start;
max-width: 1060px;
margin: 0 auto;
}
.inner > .alt {
background-color: var(--light);
border-bottom: 0;
margin: -2.22em -2.33em 1em -2.22em;
padding: 2.22em;
width: calc(100% - 4.44em);
textarea {
padding: 0.75em 1em;
}
header.major {
border-bottom: solid 3px var(--border);
display: inline-block;
margin: 0 0 10px 0;
padding: 0 0.75em 0.5em 0;
width: 250px;
}
#menu ul {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
color: var(--dark);
font-family: "Roboto Slab", serif;
font-weight: 400;
letter-spacing: 0.075em;
list-style: none;
padding: 0;
text-transform: uppercase;
}
#menu ul li {
border-top: solid 1px var(--medium);
margin: 0.5em 0 0 0;
padding: 0.5em 0 0 0;
}
#menu ul li:first-child {
border-top: 0;
margin-top: 0;
padding-top: 0;
}
#menu ul a {
border-bottom: 0;
color: inherit;
#note-table a, #note-table a:active {
color: var(--text);
cursor: pointer;
display: block;
font-size: 0.9em;
padding: 0.625em 0;
}
#sidebar .toggle::before {
content: "\f0c9";
font-size: 2rem;
height: inherit;
left: 0;
line-height: inherit;
position: absolute;
text-indent: 0;
top: 0;
width: inherit;
z-index: 99;
font-family: "Font Awesome 5 Free";
font-weight: 900;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
text-transform: none !important;
}/*# sourceMappingURL=styles.css.map */
File diff suppressed because one or more lines are too long
+24 -442
View File
@@ -1,332 +1,11 @@
@import url(mobile-style.css);
@import url(mid-screen-style.css);
@import url(lg-screen-style.css);
@import url(sidebar-style.css);
// Set up the global font styles
@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");
/* Global style settings */
@media screen and (max-width: 1050px) {
#sidebar {
display: none;
}
.note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
width: 100vw;
grid-template-columns: 1fr;
grid-template-rows: 50px 50% 1fr;
gap: 5px 0;
grid-auto-flow: column;
grid-template-areas:
"mobile-note-header"
"notes"
"ref-text";
.ref-text {
height: 99%;
width: 98vw;
margin-left: 1vw;
}
}
.ref-header, .ref-btn-header, .ref-btn, .note-header, .fields-container {
display: none;
}
.mobile-note-header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
h2 {
margin: 0 10px;
}
button {
margin: 0 10px;
}
}
.notes {
width: 98vw;
margin-left: 1vw;
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 1fr 50px;
gap: 2px 0;
grid-template-areas: "note-text" "fields-container";
grid-area: notes;
.fields-container {
justify-content: space-between;
flex-wrap: wrap;
width: 99.5%;
input[type="text"], select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--border);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 50px;
max-width: 200px;
}
}
.note-text {
height: 100%;
width: 100%;
textarea {
height: 100%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: 'Roboto Sans';
padding: 0 5px;
}
}
}
}
@media screen and (min-width: 1051px) and (max-width: 1079px) {
#sidebar {
display: none;
}
.mobile-note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
grid-template-columns: 60px 35% 1fr;
grid-template-rows: 60px 1.8fr;
gap: 5px 5px;
grid-auto-flow: row;
grid-template-areas:
"ref-btn-header ref-header note-header"
"ref-btn ref-text notes";
.fields-container {
display: none;
}
}
.bottom-row {
height: calc(100vh - 75px);
}
.notes {
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 75px 1fr;
gap: 2px 0px;
grid-template-areas: "fields-container" "note-text";
grid-area: notes;
.fields-container {
justify-content: space-evenly;
flex-wrap: wrap;
width: 99.5%;
// height: 75px;
input[type="text"], select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 50px;
max-width: 200px;
}
}
.note-text {
height: 100%;
width: 98.5%;
textarea {
height: 100%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: 'Roboto Sans';
padding: 0 5px;
}
}
}
.note-header, .ref-header {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
margin: 0;
}
}
}
@media screen and (min-width: 1080px) {
#sidebar {
//display: none;
}
.mobile-note-header, #note-list {
display: none;
}
.container {
display: grid;
height: 100vh;
grid-template-columns: 60px 35% 0.995fr;
grid-template-rows: 60px 1.8fr;
gap: 5px 5px;
grid-auto-flow: row;
grid-template-areas:
"ref-btn-header ref-header note-header"
"ref-btn ref-text notes";
.fields-container {
display: none;
}
}
.bottom-row {
height: calc(100vh - 75px);
}
.notes {
display: flex;
flex-direction: column;
grid-template-columns: 1fr;
grid-template-rows: 75px 1fr;
gap: 2px 0px;
grid-template-areas: "fields-container" "note-text";
grid-area: notes;
.fields-container {
justify-content: space-evenly;
flex-wrap: wrap;
width: 99.5%;
// height: 75px;
input[type="text"], select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 2;
min-width: 50px;
max-width: 200px;
}
}
.note-text {
height: 100%;
width: 98.5%;
textarea {
height: 99%;
width: 100%;
border-radius: 10px;
background-color: transparent;
color: var(--text);
font-family: 'Roboto Sans';
padding: 0 5px;
}
}
}
.note-header, .ref-header {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
margin: 0;
}
select {
background-color: var(--background);
color: var(--text);
height: 1.5em;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
border-radius: 0.375em;
border: solid 1px var(--dark);
outline: 0;
padding: 0 1em;
text-decoration: none;
font-size: 14pt;
font-weight: 400;
line-height: 1.65;
flex-basis: auto;
flex-grow: 1;
flex-shrink: 2;
min-width: 50px;
max-width: 200px;
margin-right: 3px;
}
}
}
#previewBtn.active,
#show-hide-btn.active,
@@ -342,7 +21,20 @@ input:focus {
}
#save-check {
display: none;
color: var(--success);
opacity: 0;
font-size: 20pt;
margin-left: 15px;
&.saving {
color: var(--warning);
opacity: 1;
}
&.error {
color: var(--error);
opacity: 1;
}
}
#ui-datepicker-div {
@@ -575,125 +267,15 @@ input:checked + .slider:before {
display: none;
}
/**
* Sidebar
*/
#sidebar {
transition: margin-left 0.5s ease, box-shadow 0.5s ease;
background-color: var(--background);
font-size: 0.9em;
position: relative;
width: 25em;
border-right: solid 2px var(--border);
flex-grow: 0;
flex-shrink: 0;
.toggle {
text-decoration: none;
transition: left 0.5s ease;
border: 0;
display: block;
height: 4.5em;
left: 25em;
line-height: 4.5em;
outline: 0;
overflow: hidden;
position: absolute;
text-align: center;
text-indent: -15em;
white-space: nowrap;
top: 0;
width: 6em;
z-index: 10000;
h2.dirty {
color: darkorange;
}
> .inner {
//padding: 2.22em 2.22em 2.44em 2.22em;
position: relative;
width: 25em;
> * {
border-bottom: solid 2px var(--medium);
margin: 0 0 3.5em 0;
}
}
textarea {
padding: 0.75em 1em;
}
.inner {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: stretch;
align-content: flex-start;
max-width: 1060px;
margin: 0 auto;
> .alt {
background-color: var(--light);
border-bottom: 0;
margin: -2.22em -2.33em 1.0em -2.22em;
padding: 2.22em;
width: calc(100% - 4.44em);
}
}
header.major {
border-bottom: solid 3px var(--border);
display: inline-block;
margin: 0 0 10px 0;
padding: 0 0.75em 0.5em 0;
width: 250px;
}
#menu ul {
user-select: none;
color: var(--dark);
font-family: "Roboto Slab", serif;
font-weight: 400;
letter-spacing: 0.075em;
list-style: none;
padding: 0;
text-transform: uppercase;
}
#menu ul li {
border-top: solid 1px var(--medium);
margin: 0.5em 0 0 0;
padding: 0.5em 0 0 0;
}
#menu ul li:first-child {
border-top: 0;
margin-top: 0;
padding-top: 0;
}
#menu ul a {
border-bottom: 0;
color: inherit;
#note-table a, #note-table a:active {
color: var(--text);
cursor: pointer;
display: block;
font-size: 0.9em;
padding: 0.625em 0;
}
#sidebar .toggle::before {
content: '\f0c9';
font-size: 2rem;
height: inherit;
left: 0;
line-height: inherit;
position: absolute;
text-indent: 0;
top: 0;
width: inherit;
z-index: 99;
font-family: 'Font Awesome 5 Free';
font-weight: 900;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
text-transform: none !important;
}