X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=public%2Fcss%2Fstyle.css;h=9637ab027746587d02ab08b1b938757cee10482d;hb=e21959e2553c43eb24c69c78818be475e653134a;hp=3d6d771444f5915052f1fd02b46a2c269dbe6c6c;hpb=52688859f55cc3ee271f8e10583f354e1f6eabd8;p=lsl.git diff --git a/public/css/style.css b/public/css/style.css index 3d6d771..9637ab0 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,7 +1,7 @@ body { margin: 0; -margin-bottom: 25px; +margin-bottom: 1em; padding: 0; background-color: #ddd; font-family: "Bitstream Vera Sans", sans-serif; @@ -35,7 +35,7 @@ input { } h1 { -font-size: 200%; +font-size: 150%; color: #000; } @@ -48,24 +48,24 @@ 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; } #sidebar { -float: right; -width: 175px; } #about, #getting-started { @@ -73,9 +73,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; @@ -94,12 +101,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; @@ -120,10 +127,8 @@ code, .filepath, .app-info { } #footer { -clear: both; padding-top: 2em; text-align: center; -padding-right: 160px; font-family: sans-serif; font-size: 10px; } @@ -133,8 +138,8 @@ font-size: 10px; display: none; } .have-lists #lists-sidebar-item { display: block; } -div.needs-lists { display: none; } -.have-lists div.needs-lists { 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; @@ -152,12 +157,9 @@ div.needs-lists { display: none; } } .input-with-button { display: grid; - grid-template-columns: auto auto; + grid-template-columns: auto max-content; column-gap: 1ex; } -.input-with-button > button { - max-width: max-content; -} .list-item-row { display: grid; @@ -165,10 +167,14 @@ div.needs-lists { display: none; } 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.3em; +} .list-item-row .description { cursor: text; min-width: 2em; } .list-item-row .edit-trigger { cursor: pointer; @@ -182,8 +188,8 @@ div.needs-lists { display: none; } opacity: 1; padding: 0 0.5ex; } -.edit-trigger:hover { - background: hsla(0, 0%, 80%, 1); +#list-edit-trigger:hover { + background: hsla(0, 0%, 90%, 1); } #busy-screen { @@ -214,12 +220,16 @@ div.needs-lists { display: none; } 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; @@ -230,35 +240,43 @@ ul#lists > li.selected { #new-list-item { margin-top: 1em; } -span.list-edit-trigger { - visibility: hidden; - opacity: 0; +#list-edit-trigger { transition: 0.25s; - margin-top: auto; - margin-bottom: auto; -} -ul#lists > li:hover span.list-edit-trigger { - visibility: visible; - opacity: 1; -} -ul#lists > li span.ui-icon-disk, -ul#lists > li.editing span.ui-icon-pencil { - display: none; + 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.3; } +.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; +}