X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=public%2Fcss%2Fstyle.css;h=4634b150df1a5f5b9e4685010194bc5bb63ddc21;hb=refs%2Fheads%2Fmain;hp=80f143517cdcec139021d4754db533654ae2240c;hpb=0ddba2456ee68202f1086a8f5db82ac5e2403b6c;p=lsl.git diff --git a/public/css/style.css b/public/css/style.css index 80f1435..4634b15 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,20 +1,41 @@ body { margin: 0; -margin-bottom: 25px; +margin-bottom: 1em; padding: 0; background-color: #ddd; font-family: "Bitstream Vera Sans", sans-serif; -font-size: 12pt; +font-size: 14pt; color: #333; } +#splash { + z-index: 1; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: hsl(0, 0%, 30%); + color: white; + display: grid; + transition: 0.2s; +} +#splash.done { + opacity: 0; + color: black; +} +#splash > p { + margin: auto; + width: max-content; + font-size: 200%; +} input { - font-size: 12pt; + font-size: 14pt; } h1 { -font-size: 200%; +font-size: 150%; color: #000; } @@ -27,24 +48,25 @@ text-decoration: none; #page { background-color: #ddd; -width: 750px; -margin: auto; -margin-left: auto; -padding-left: 0px; -margin-right: auto; +display: grid; +margin: 0 1em 1em 1em; +} +@media (min-width: 500pt) { + #page { + grid-template-columns: auto minmax(25%,20em); + grid-column-gap: 1em; + } } #content { background-color: white; border: 3px solid #aaa; border-top: none; -padding: 25px; -width: 500px; +padding: 1em; +box-sizing: border-box; } #sidebar { -float: right; -width: 175px; } #about, #getting-started { @@ -52,9 +74,16 @@ padding-left: 75px; padding-right: 30px; } +#head-list-name { + display: grid; + grid-template-columns: auto 2em; + grid-column-gap: 1ex; + min-height: 2em; + align-items: center; +} #header h1, #header h2 {margin: 0} -#header { font-weight: bold; } +#selected-list-name { font-weight: bold; } #header h2 { color: #888; font-weight: normal; @@ -73,12 +102,12 @@ padding-left: 0; } #sidebar ul h3 { margin-top: 25px; -font-size: 16px; +font-size: 120%; padding-bottom: 10px; -border-bottom: 1px solid #ccc; } #sidebar li { list-style-type: none; +border-bottom: 1px solid #ccc; } #sidebar ul.links li { margin-bottom: 5px; @@ -99,18 +128,23 @@ code, .filepath, .app-info { } #footer { -clear: both; padding-top: 2em; text-align: center; -padding-right: 160px; font-family: sans-serif; font-size: 10px; } -#lists-sidebar-item, .have-lists #no-lists-sidebar-item { +#lists-sidebar-item, +.have-lists .have-no-lists { display: none; } .have-lists #lists-sidebar-item { display: block; } +.needs-lists { display: none; } +.have-lists .needs-lists { display: block; } +.have-list-items #list-is-empty { display: none; } +#list-is-empty { + font-style: italic; +} .table-2-col { display: grid; grid-template-columns: auto auto; @@ -119,16 +153,46 @@ font-size: 10px; .table-2-col > .arrow { align-self: center; } -#list-contents { display: none; } .have-list #list-contents { display: block; } -#new-list-sidebar-item > div { +.input-with-button { display: grid; - grid-template-columns: auto auto; + grid-template-columns: auto max-content; column-gap: 1ex; } +.list-item-row { + display: grid; + grid-template-columns: max-content auto max-content; + column-gap: 1ex; + background: hsla(0, 0%, 90%, 0); + transition: 0.5s; + line-height: 1.7em; +} +.list-item-row:hover { + background: hsla(0, 0%, 90%, 1); +} +.list-item-row input[type="checkbox"] { + width: 1.2em; +} +.list-item-row .description { cursor: default; min-width: 2em; } +.list-item-row .edit-trigger { + cursor: pointer; + visibility: hidden; + opacity: 0; + transition: 0.5s; + background: hsla(0, 0%, 80%, 0); + padding: 0 0.5ex; +} +.list-item-row:hover .edit-trigger { + visibility: visible; + opacity: 1; +} +#list-edit-trigger:hover { + background: hsla(0, 0%, 90%, 1); +} + #busy-screen { display: none; opacity: 0; @@ -156,4 +220,80 @@ font-size: 10px; background: hsla(0, 0%, 100%, 75%); border-radius: 1ex; } +ul#lists > li { + padding-inline-start: .75ex; + min-height: 2em; + cursor: pointer; + border: 1px solid transparent; + border-top: 1px solid #bbb; + transition: 0.25s; + display: grid; + grid-template-columns: auto max-content; + column-gap: 1ex; + align-items: center; +} +ul#lists > li:hover { + border: 1px solid black; +} +ul#lists > li.selected { + background: hsl(0, 0%, 70%); +} +#new-list-item { + margin-top: 1em; +} +#list-edit-trigger { + transition: 0.25s; + height: 2em; + width: 2em; + display: grid; + align-items: center; + justify-items: center; + border-radius: 0.75ex; +} +ul#lists > li.editing span.ui-icon-disk { display: inline-block; } + +ul#list-items { + padding: 0; +} + +.ui-widget-overlay { + opacity: 0.4; +} +.ui-dialog .ui-dialog-buttonpane { + padding-left: 1.4em; +} +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: none; + text-align: right; +} +.ui-dialog-buttonset > button.btn-delete { + float: left; + margin-right: 2em; +} + +.ui-button.btn-delete:hover { + background: hsl(0, 70%, 92.9%); +} + +.edit-item-dialog input[type="text"], +.edit-list-dialog input[type="text"] { + width: 100%; + box-sizing: border-box; +} +#item-multi-action { + display: block; + position: fixed; + top: -3em; + opacity: 0; + transition: .5s cubic-bezier(0.0, 0.0, 0.0, 1.0); + background: white; + box-shadow: 0 0 1em 1ex white; +} +#item-multi-action.in-view { + top: 4em; + opacity: 1; +} +#item-multi-action button { display: none; } +#item-multi-action.checking button#btn-check-all { display: block; } +#item-multi-action.clearing button#btn-clear-all { display: block; }