refactored categories code, now a seperate modifiable file
style changes and refinements
This commit is contained in:
@@ -27,6 +27,7 @@ body, html {
|
||||
background: rgb(19, 19, 19);
|
||||
overflow-y: auto; /* make it scrollable */
|
||||
width: 12%; /* fixed width */
|
||||
box-sizing: border-box; /* include padding/border in width */
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar {
|
||||
@@ -91,7 +92,7 @@ body, html {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
background: red;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
border: none;
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
@@ -118,8 +119,9 @@ body, html {
|
||||
.categories {
|
||||
/* make sidebar wider */
|
||||
padding: 10px;
|
||||
padding-bottom: 0px;
|
||||
border: 1px solid white; /* sidebar border color */
|
||||
border-radius: 4px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.fruit {
|
||||
@@ -231,4 +233,43 @@ body, html {
|
||||
height: 28px;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.square-number {
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
right: 6px;
|
||||
font-size: 0.9em;
|
||||
color: #bdbdbd;
|
||||
opacity: 0.7;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.custom-fruit-input {
|
||||
border: 1px solid #d103f9;
|
||||
border-radius: 5px;
|
||||
padding: 6px 10px;
|
||||
outline: none;
|
||||
background: #181818;
|
||||
color: white;
|
||||
width: 90%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.category-selectable {
|
||||
box-shadow: 0 0 0 3px #d103f9, 0 0 10px 2px #d103f9;
|
||||
border-color: #d103f9 !important;
|
||||
cursor: pointer;
|
||||
transition: box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.category-select-msg {
|
||||
/* see JS for inline styles */
|
||||
}
|
||||
|
||||
#delete-fruit-popup {
|
||||
/* see JS for inline styles, but you can add more here if needed */
|
||||
box-shadow: 0 4px 32px #000b;
|
||||
z-index: 2000;
|
||||
}
|
||||
Reference in New Issue
Block a user