]> git.ktnx.net Git - lsl.git/blobdiff - public/css/style.css
next step in web-app: adding of lists and list items, marking items as done/pending
[lsl.git] / public / css / style.css
index 80f143517cdcec139021d4754db533654ae2240c..98ef56559d391dc93f8ccd3a466d9437b98d0d6d 100644 (file)
@@ -5,12 +5,12 @@ margin-bottom: 25px;
 padding: 0;
 background-color: #ddd;
 font-family: "Bitstream Vera Sans", sans-serif;
-font-size: 12pt;
+font-size: 14pt;
 color: #333;
 }
 
 input {
-    font-size: 12pt;
+    font-size: 14pt;
 }
 
 h1 {
@@ -107,10 +107,17 @@ 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; }
+div.needs-lists { display: none; }
+.have-lists div.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,15 +126,44 @@ 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;
     column-gap: 1ex;
 }
+.input-with-button > button {
+    max-width: max-content;
+}
+
+.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;
+}
+.list-item-row:hover {
+    background: hsla(0, 0%, 90%, 1);
+}
+.list-item-row .description { cursor: text; min-width: 2em; }
+.list-item-row .edit-trigger {
+    cursor: pointer;
+    visibility: hidden;
+    opacity: 0;
+    transition: 0.5s;
+    background: hsla(0, 0%, 80%, 0);
+}
+.list-item-row:hover .edit-trigger {
+    visibility: visible;
+    opacity: 1;
+    padding: 0 0.5ex;
+}
+.edit-trigger:hover {
+    background: hsla(0, 0%, 80%, 1);
+}
 
 #busy-screen {
     display: none;
@@ -156,4 +192,17 @@ font-size: 10px;
     background: hsla(0, 0%, 100%, 75%);
     border-radius: 1ex;
 }
-
+ul#lists > li {
+    cursor: pointer;
+    border: 1px solid transparent;
+    transition: 0.25s;
+}
+ul#lists > li:hover {
+    border: 1px solid black;
+}
+ul#lists > li.selected {
+    background: hsl(0, 0%, 70%);
+}
+#new-list-item {
+    margin-top: 1em;
+}