diff --git a/assets/static/css/main.css b/assets/static/css/main.css index c05eb24..2f35d3f 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -14,7 +14,7 @@ /* Default (light) theme */ --bg: #fff; - --bg-primary-color: #2b5797; + --primary-color: #2b5797; } /* Dark theme */ @@ -57,10 +57,15 @@ h1,h2,h3,h4,h5,h6, form { a { text-decoration: none; + color: var(--primary-color); } - /* End reset */ +body { + color: #000 !important; + background-color: #f1f1f1 !important; +} + html { font-family: var(--sans-font), sans-serif; scroll-behavior: smooth; @@ -147,7 +152,7 @@ input[type='radio'] { width: 18px; height: 18px; position: relative; - accent-color: var(--bg-primary-color); + accent-color: var(--primary-color); } .label-checkbox { @@ -156,14 +161,78 @@ input[type='radio'] { margin-left: 4px; } +.table-all { + border-collapse: collapse; + border-spacing: 0; + width: 100%; + display: table; + border: 1px solid #ccc +} + +.bordered tr, +.table-all tr { + border-bottom: 1px solid #ddd +} + +.striped tbody tr:nth-child(even) { + background-color: #f1f1f1 +} + +.table-all tr:nth-child(odd) { + background-color: #fff +} + +.table-all tr:nth-child(even) { + background-color: #f1f1f1 +} + +.hoverable tbody tr:hover, +.ul.w3-hoverable li:hover { + background-color: #ccc +} + +.centered tr th, +.centered tr td { + text-align: center +} + +.table-all td, +.table-all th { + padding: 8px 8px; + display: table-cell; + text-align: left; + vertical-align: top +} + +.table-all th:first-child, +.table-all td:first-child { + padding-left: 16px +} + +#page-main { + transition: margin-left .4s; + width: 100%; +} + +#form-login { + width: 600px; +} + #main-sidebar { width: 300px; z-index: 5; + height: 100%; + background-color: #fff; + position: fixed !important; + overflow: auto; + color: #000 !important; + animation: animateleft 0.4s; + display: none; } #app-title { height: 50px; - background-color: var(--bg-primary-color); + background-color: var(--primary-color); color: #ffffff; font-size: 1.4rem; padding-left: 8px; @@ -173,6 +242,20 @@ input[type='radio'] { position: fixed; } +#app-title a { + color: #ffffff; +} + +#app-title img { + height: 32px; + float: left; + padding-right: 10px; +} + +#app-title a span { + vertical-align: top; +} + #main-sidebar-content { margin-top: 50px; } @@ -188,6 +271,9 @@ input[type='radio'] { align-items: center; z-index: 1; height: 50px; + background-color: var(--primary-color); + position: fixed; + width: inherit; } #page-title-container { @@ -207,20 +293,25 @@ input[type='radio'] { font-size: 1.4rem; } +#page-title h5 { + color: #ffffff; +} + #search-bar { float: right; } +#search-bar button { + color: #ffffff; + margin-top: 2px; +} + #search-text { float: left; width: auto; padding: 4px; } -#search-bar button { - margin-top: 2px; -} - .sidebar-block { padding: 0.01em 4px; } @@ -237,13 +328,33 @@ input[type='radio'] { font-size: 1rem; } +#types_menu, #settings_menu { + margin-left: 2px !important; +} + +.menu-item-title:hover, #settings_menu a:hover{ + border-radius: 8px; + background-color: var(--primary-color); + color: #ffffff; +} + +.accordion { + cursor: pointer; +} + +#page-content { + padding-top: 4px; + padding-left: 4px; + padding-right: 4px; +} + #page-container { padding: 0.01em 4px; } #dashboard h5 { font-size: 1rem; - color: var(--bg-primary-color); + color: var(--primary-color); } .tab-bar { @@ -304,13 +415,13 @@ input[type='radio'] { } .ss-main .ss-values .ss-value { - background-color: var(--bg-primary-color); + background-color: var(--primary-color); } .ss-content .ss-list .ss-option:hover, .ss-content .ss-list .ss-option.ss-highlighted, .ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected { - background-color:var(--bg-primary-color); + background-color:var(--primary-color); } #quickbox { @@ -389,4 +500,57 @@ input[type='radio'] { #quickbox-content div:nth-child(2n+1) { background-color: #fafafa; +} + +.hide,.hidden { + display: none !important +} + +.block, +.show { + display: block !important +} + +/* Small */ +@media (max-width: 568px) { + .hide-small { + display: none !important + } +} + +/* Medium */ +@media (max-width: 768px) { + +} + +@media (max-width:993px) and (min-width:768px) { + .hide-medium { + display: none !important + } +} + +@media (min-width:993px) { + .hide-large { + display: none !important + } + + #main-sidebar { + display: block !important; + } + + .w3-row > .w3-half:first { + padding-right: 4px; + } + + .w3-row > .w3-half:nth-child(2) { + padding-left: 4px; + } + + #page-main { + padding-left: 300px; + } + + #page-top-bar { + padding-right: 300px; + } } \ No newline at end of file diff --git a/assets/static/css/orig.css b/assets/static/css/orig.css index 982792a..c42cf0c 100644 --- a/assets/static/css/orig.css +++ b/assets/static/css/orig.css @@ -1,72 +1,3 @@ -.w3-image { - max-width: 100%; - height: auto -} - -img { - vertical-align: middle -} - -a { - color: inherit -} - -.w3-table, -.w3-table-all { - border-collapse: collapse; - border-spacing: 0; - width: 100%; - display: table -} - -.w3-table-all { - border: 1px solid #ccc -} - -.w3-bordered tr, -.w3-table-all tr { - border-bottom: 1px solid #ddd -} - -.w3-striped tbody tr:nth-child(even) { - background-color: #f1f1f1 -} - -.w3-table-all tr:nth-child(odd) { - background-color: #fff -} - -.w3-table-all tr:nth-child(even) { - background-color: #f1f1f1 -} - -.w3-hoverable tbody tr:hover, -.w3-ul.w3-hoverable li:hover { - background-color: #ccc -} - -.w3-centered tr th, -.w3-centered tr td { - text-align: center -} - -.w3-table td, -.w3-table th, -.w3-table-all td, -.w3-table-all th { - padding: 8px 8px; - display: table-cell; - text-align: left; - vertical-align: top -} - -.w3-table th:first-child, -.w3-table td:first-child, -.w3-table-all th:first-child, -.w3-table-all td:first-child { - padding-left: 16px -} - .w3-disabled, .w3-btn:disabled, .w3-button:disabled { @@ -193,15 +124,6 @@ a { accent-color: #2b5797; } -.w3-sidebar { - height: 100%; - width: 200px; - background-color: #fff; - position: fixed !important; - z-index: 1; - overflow: auto -} - .w3-bar-block .w3-dropdown-hover, .w3-bar-block .w3-dropdown-click { width: 100% @@ -532,15 +454,6 @@ a { vertical-align: bottom } -.w3-hide { - display: none !important -} - -.w3-show-block, -.w3-show { - display: block !important -} - .w3-show-inline-block { display: inline-block !important } @@ -566,10 +479,6 @@ a { position: relative } - .w3-hide-small { - display: none !important - } - .w3-mobile { display: block; width: 100% !important @@ -615,26 +524,9 @@ a { width: 900px } - .w3-hide-large { - display: none !important - } - - .w3-sidebar.w3-collapse { - display: block !important - } -} - -@media (max-width:992px) and (min-width:601px) { - .w3-hide-medium { - display: none !important - } } @media (max-width:992px) { - .w3-sidebar.w3-collapse { - display: none - } - .w3-main { margin-left: 0 !important; margin-right: 0 !important @@ -1149,524 +1041,6 @@ a { box-shadow: none !important } -/* Colors */ -.w3-amber, -.w3-hover-amber:hover { - color: #000 !important; - background-color: #ffc107 !important -} - -.w3-aqua, -.w3-hover-aqua:hover { - color: #000 !important; - background-color: #00ffff !important -} - -.w3-blue, -.w3-hover-blue:hover { - color: #fff !important; - background-color: #2196F3 !important -} - -.w3-light-blue, -.w3-hover-light-blue:hover { - color: #000 !important; - background-color: #87CEEB !important -} - -.w3-brown, -.w3-hover-brown:hover { - color: #fff !important; - background-color: #795548 !important -} - -.w3-cyan, -.w3-hover-cyan:hover { - color: #000 !important; - background-color: #00bcd4 !important -} - -.w3-blue-grey, -.w3-hover-blue-grey:hover, -.w3-blue-gray, -.w3-hover-blue-gray:hover { - color: #fff !important; - background-color: #607d8b !important -} - -.w3-green, -.w3-hover-green:hover { - color: #fff !important; - background-color: #4CAF50 !important -} - -.w3-light-green, -.w3-hover-light-green:hover { - color: #000 !important; - background-color: #8bc34a !important -} - -.w3-indigo, -.w3-hover-indigo:hover { - color: #fff !important; - background-color: #3f51b5 !important -} - -.w3-khaki, -.w3-hover-khaki:hover { - color: #000 !important; - background-color: #f0e68c !important -} - -.w3-lime, -.w3-hover-lime:hover { - color: #000 !important; - background-color: #cddc39 !important -} - -.w3-orange, -.w3-hover-orange:hover { - color: #000 !important; - background-color: #ff9800 !important -} - -.w3-deep-orange, -.w3-hover-deep-orange:hover { - color: #fff !important; - background-color: #ff5722 !important -} - -.w3-pink, -.w3-hover-pink:hover { - color: #fff !important; - background-color: #e91e63 !important -} - -.w3-purple, -.w3-hover-purple:hover { - color: #fff !important; - background-color: #9c27b0 !important -} - -.w3-deep-purple, -.w3-hover-deep-purple:hover { - color: #fff !important; - background-color: #673ab7 !important -} - -.w3-red, -.w3-hover-red:hover { - color: #fff !important; - background-color: #f44336 !important -} - -.w3-sand, -.w3-hover-sand:hover { - color: #000 !important; - background-color: #fdf5e6 !important -} - -.w3-teal, -.w3-hover-teal:hover { - color: #fff !important; - background-color: #009688 !important -} - -.w3-yellow, -.w3-hover-yellow:hover { - color: #000 !important; - background-color: #ffeb3b !important -} - -.w3-white, -.w3-hover-white:hover { - color: #000 !important; - background-color: #fff !important -} - -.w3-black, -.w3-hover-black:hover { - color: #fff !important; - background-color: #000 !important -} - -.w3-grey, -.w3-hover-grey:hover, -.w3-gray, -.w3-hover-gray:hover { - color: #000 !important; - background-color: #9e9e9e !important -} - -.w3-light-grey, -.w3-hover-light-grey:hover, -.w3-light-gray, -.w3-hover-light-gray:hover { - color: #000 !important; - background-color: #f1f1f1 !important -} - -.w3-dark-grey, -.w3-hover-dark-grey:hover, -.w3-dark-gray, -.w3-hover-dark-gray:hover { - color: #fff !important; - background-color: #616161 !important -} - -.w3-pale-red, -.w3-hover-pale-red:hover { - color: #000 !important; - background-color: #ffdddd !important -} - -.w3-pale-green, -.w3-hover-pale-green:hover { - color: #000 !important; - background-color: #ddffdd !important -} - -.w3-pale-yellow, -.w3-hover-pale-yellow:hover { - color: #000 !important; - background-color: #ffffcc !important -} - -.w3-pale-blue, -.w3-hover-pale-blue:hover { - color: #000 !important; - background-color: #ddffff !important -} - -.w3-text-amber, -.w3-hover-text-amber:hover { - color: #ffc107 !important -} - -.w3-text-aqua, -.w3-hover-text-aqua:hover { - color: #00ffff !important -} - -.w3-text-blue, -.w3-hover-text-blue:hover { - color: #2196F3 !important -} - -.w3-text-light-blue, -.w3-hover-text-light-blue:hover { - color: #87CEEB !important -} - -.w3-text-brown, -.w3-hover-text-brown:hover { - color: #795548 !important -} - -.w3-text-cyan, -.w3-hover-text-cyan:hover { - color: #00bcd4 !important -} - -.w3-text-blue-grey, -.w3-hover-text-blue-grey:hover, -.w3-text-blue-gray, -.w3-hover-text-blue-gray:hover { - color: #607d8b !important -} - -.w3-text-green, -.w3-hover-text-green:hover { - color: #4CAF50 !important -} - -.w3-text-light-green, -.w3-hover-text-light-green:hover { - color: #8bc34a !important -} - -.w3-text-indigo, -.w3-hover-text-indigo:hover { - color: #3f51b5 !important -} - -.w3-text-khaki, -.w3-hover-text-khaki:hover { - color: #b4aa50 !important -} - -.w3-text-lime, -.w3-hover-text-lime:hover { - color: #cddc39 !important -} - -.w3-text-orange, -.w3-hover-text-orange:hover { - color: #ff9800 !important -} - -.w3-text-deep-orange, -.w3-hover-text-deep-orange:hover { - color: #ff5722 !important -} - -.w3-text-pink, -.w3-hover-text-pink:hover { - color: #e91e63 !important -} - -.w3-text-purple, -.w3-hover-text-purple:hover { - color: #9c27b0 !important -} - -.w3-text-deep-purple, -.w3-hover-text-deep-purple:hover { - color: #673ab7 !important -} - -.w3-text-red, -.w3-hover-text-red:hover { - color: #f44336 !important -} - -.w3-text-sand, -.w3-hover-text-sand:hover { - color: #fdf5e6 !important -} - -.w3-text-teal, -.w3-hover-text-teal:hover { - color: #009688 !important -} - -.w3-text-yellow, -.w3-hover-text-yellow:hover { - color: #d2be0e !important -} - -.w3-text-white, -.w3-hover-text-white:hover { - color: #fff !important -} - -.w3-text-black, -.w3-hover-text-black:hover { - color: #000 !important -} - -.w3-text-grey, -.w3-hover-text-grey:hover, -.w3-text-gray, -.w3-hover-text-gray:hover { - color: #757575 !important -} - -.w3-text-light-grey, -.w3-hover-text-light-grey:hover, -.w3-text-light-gray, -.w3-hover-text-light-gray:hover { - color: #f1f1f1 !important -} - -.w3-text-dark-grey, -.w3-hover-text-dark-grey:hover, -.w3-text-dark-gray, -.w3-hover-text-dark-gray:hover { - color: #3a3a3a !important -} - -.w3-border-amber, -.w3-hover-border-amber:hover { - border-color: #ffc107 !important -} - -.w3-border-aqua, -.w3-hover-border-aqua:hover { - border-color: #00ffff !important -} - -.w3-border-blue, -.w3-hover-border-blue:hover { - border-color: #2196F3 !important -} - -.w3-border-light-blue, -.w3-hover-border-light-blue:hover { - border-color: #87CEEB !important -} - -.w3-border-brown, -.w3-hover-border-brown:hover { - border-color: #795548 !important -} - -.w3-border-cyan, -.w3-hover-border-cyan:hover { - border-color: #00bcd4 !important -} - -.w3-border-blue-grey, -.w3-hover-border-blue-grey:hover, -.w3-border-blue-gray, -.w3-hover-border-blue-gray:hover { - border-color: #607d8b !important -} - -.w3-border-green, -.w3-hover-border-green:hover { - border-color: #4CAF50 !important -} - -.w3-border-light-green, -.w3-hover-border-light-green:hover { - border-color: #8bc34a !important -} - -.w3-border-indigo, -.w3-hover-border-indigo:hover { - border-color: #3f51b5 !important -} - -.w3-border-khaki, -.w3-hover-border-khaki:hover { - border-color: #f0e68c !important -} - -.w3-border-lime, -.w3-hover-border-lime:hover { - border-color: #cddc39 !important -} - -.w3-border-orange, -.w3-hover-border-orange:hover { - border-color: #ff9800 !important -} - -.w3-border-deep-orange, -.w3-hover-border-deep-orange:hover { - border-color: #ff5722 !important -} - -.w3-border-pink, -.w3-hover-border-pink:hover { - border-color: #e91e63 !important -} - -.w3-border-purple, -.w3-hover-border-purple:hover { - border-color: #9c27b0 !important -} - -.w3-border-deep-purple, -.w3-hover-border-deep-purple:hover { - border-color: #673ab7 !important -} - -.w3-border-red, -.w3-hover-border-red:hover { - border-color: #f44336 !important -} - -.w3-border-sand, -.w3-hover-border-sand:hover { - border-color: #fdf5e6 !important -} - -.w3-border-teal, -.w3-hover-border-teal:hover { - border-color: #009688 !important -} - -.w3-border-yellow, -.w3-hover-border-yellow:hover { - border-color: #ffeb3b !important -} - -.w3-border-white, -.w3-hover-border-white:hover { - border-color: #fff !important -} - -.w3-border-black, -.w3-hover-border-black:hover { - border-color: #000 !important -} - -.w3-border-grey, -.w3-hover-border-grey:hover, -.w3-border-gray, -.w3-hover-border-gray:hover { - border-color: #9e9e9e !important -} - -.w3-border-light-grey, -.w3-hover-border-light-grey:hover, -.w3-border-light-gray, -.w3-hover-border-light-gray:hover { - border-color: #f1f1f1 !important -} - -.w3-border-dark-grey, -.w3-hover-border-dark-grey:hover, -.w3-border-dark-gray, -.w3-hover-border-dark-gray:hover { - border-color: #616161 !important -} - -.w3-border-pale-red, -.w3-hover-border-pale-red:hover { - border-color: #ffe7e7 !important -} - -.w3-border-pale-green, -.w3-hover-border-pale-green:hover { - border-color: #e7ffe7 !important -} - -.w3-border-pale-yellow, -.w3-hover-border-pale-yellow:hover { - border-color: #ffffcc !important -} - -.w3-border-pale-blue, -.w3-hover-border-pale-blue:hover { - border-color: #e7ffff !important -} - -.w3-metro-darken { - color: #fff !important; - background-color: #1d1d1d !important -} - -.w3-metro-light-blue { - color: #000 !important; - background-color: #eff4ff !important -} - -.w3-metro-blue { - color: #fff !important; - background-color: #2d89ef !important -} - -.w3-metro-dark-blue { - color: #fff !important; - background-color: var(--bg-primary-color) !important -} - -.w3-text-metro-dark-blue { - color: #2b5797; -} - -.w3-hover-metro-dark-blue:hover { - color: #fff !important; - background-color: #2b5797 !important; -} - -.w3-hover-round-large { - border-radius: 8px; -} - .alert-success { color: #000; background-color: #ccc; @@ -1685,16 +1059,6 @@ a { margin-left: 5px; } -#page-content { - padding-top: 48px; - padding-left: 4px; - padding-right: 4px; -} - -.page-container { - padding-top: 10px; -} - .w3-row .threequarter { width: 75%; float: left; @@ -1705,10 +1069,6 @@ a { float: left; } -#form-login { - width: 600px; -} - .w3-button.w3-edit { background-color: #f1f1f1; } @@ -1733,14 +1093,6 @@ a { padding-left: 0; } -.hidden { - display: none; -} - -.accordion { - cursor: pointer; -} - .footerNavbar-container { position: fixed; bottom: 5px; @@ -1821,17 +1173,11 @@ a { margin: 0; } -#types_menu, #settings_menu { - margin-left: 2px !important; -} - tr.htmx-swapping td { opacity: 0; transition: opacity 1s ease-out; } - - #items_search, #all_items_search { position: sticky; top: 50px; @@ -1985,7 +1331,6 @@ table.stickyheader.searchopened thead { } @media (max-width:992px) { - /* The switch - the box around the slider */ .switch { position: relative; @@ -2087,21 +1432,3 @@ table.stickyheader.searchopened thead { } -/* Large */ -@media (min-width:993px) { - .w3-row > .w3-half:first { - padding-right: 4px; - } - - .w3-row > .w3-half:nth-child(2) { - padding-left: 4px; - } - - #page-main { - padding-left: 300px; - } - - #page-top-bar { - padding-right: 300px; - } -} diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index f297245..9be16e5 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -17,24 +17,24 @@ end }} - + {{template "partial:sidebar" .}} -
-
+
+
- + BrainMinder
{{template "page:title" .}}
@@ -71,9 +71,9 @@
-
Quickbox
diff --git a/assets/templates/categories/create_title.tmpl b/assets/templates/categories/create_title.tmpl index ddaa641..6a09da9 100644 --- a/assets/templates/categories/create_title.tmpl +++ b/assets/templates/categories/create_title.tmpl @@ -2,7 +2,7 @@
New Category
-
+
{{end}} diff --git a/assets/templates/categories/form.tmpl b/assets/templates/categories/form.tmpl index 366a735..8850201 100644 --- a/assets/templates/categories/form.tmpl +++ b/assets/templates/categories/form.tmpl @@ -16,7 +16,7 @@ />

-

+

@@ -30,7 +30,7 @@

-
+
- +
diff --git a/assets/templates/categories/list_title.tmpl b/assets/templates/categories/list_title.tmpl index bcc4c56..d5d89ff 100644 --- a/assets/templates/categories/list_title.tmpl +++ b/assets/templates/categories/list_title.tmpl @@ -2,7 +2,7 @@
Categories
-
+ -
+ {{end}} diff --git a/assets/templates/full.tmpl b/assets/templates/full.tmpl index b2eb676..3630293 100644 --- a/assets/templates/full.tmpl +++ b/assets/templates/full.tmpl @@ -15,7 +15,7 @@ end }} - +
{{template "page:content" .}}
diff --git a/assets/templates/items/add_relation.tmpl b/assets/templates/items/add_relation.tmpl index 7b81eab..36f9315 100644 --- a/assets/templates/items/add_relation.tmpl +++ b/assets/templates/items/add_relation.tmpl @@ -11,7 +11,7 @@
diff --git a/assets/templates/items/all_list.tmpl b/assets/templates/items/all_list.tmpl index 345ac1c..5b4c80f 100644 --- a/assets/templates/items/all_list.tmpl +++ b/assets/templates/items/all_list.tmpl @@ -52,7 +52,7 @@
-
Name {{ if gt (len .relatedItem.Categories) 0 }} - + {{ range (stringToArray .relatedItem.Categories "|")}} {{ $category_name := index $.categoriesMap .}}
@@ -22,7 +22,7 @@
{{ if gt (len .relatedItem.Tags) 0 }} - + {{ range (stringToArray .relatedItem.Tags ",")}}
{{ . }} @@ -37,7 +37,7 @@ class="w3-right w3-btn w3-metro-dark-red w3-round-large" href="#" _="on click remove #{{$relation_name}}-Row" - > Remove Remove
+ diff --git a/assets/templates/items/all_list_rows.tmpl b/assets/templates/items/all_list_rows.tmpl index 43e6ae6..cd71230 100644 --- a/assets/templates/items/all_list_rows.tmpl +++ b/assets/templates/items/all_list_rows.tmpl @@ -14,14 +14,14 @@ > - +