src/main/webapp/lightpit.css

Mon, 04 Jan 2021 12:45:22 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 04 Jan 2021 12:45:22 +0100
changeset 172
89b3320557e2
parent 162
2adc8623dd89
child 180
009700915269
permissions
-rw-r--r--

fixes #120 - thin border rendering for Chrome

universe@10 1 /*
universe@10 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@10 3 *
universe@24 4 * Copyright 2018 Mike Becker. All rights reserved.
universe@10 5 *
universe@10 6 * Redistribution and use in source and binary forms, with or without
universe@10 7 * modification, are permitted provided that the following conditions are met:
universe@10 8 *
universe@10 9 * 1. Redistributions of source code must retain the above copyright
universe@10 10 * notice, this list of conditions and the following disclaimer.
universe@10 11 *
universe@10 12 * 2. Redistributions in binary form must reproduce the above copyright
universe@10 13 * notice, this list of conditions and the following disclaimer in the
universe@10 14 * documentation and/or other materials provided with the distribution.
universe@10 15 *
universe@10 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@10 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@10 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
universe@10 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
universe@10 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
universe@10 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
universe@10 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
universe@10 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
universe@10 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
universe@10 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
universe@10 26 * POSSIBILITY OF SUCH DAMAGE.
universe@10 27 *
universe@10 28 */
universe@10 29
universe@10 30 html {
universe@47 31 font-family: sans-serif;
universe@52 32 font-size: 11pt;
universe@47 33 background: white;
universe@47 34 color: #1c204e;
universe@47 35 margin: 0;
universe@47 36 padding: 0;
universe@10 37 }
universe@10 38
universe@10 39 body {
universe@47 40 height: 100%;
universe@47 41 margin: 0;
universe@47 42 padding: 0;
universe@26 43 }
universe@26 44
universe@10 45 a {
universe@11 46 color: #3060f8;
universe@10 47 text-decoration: none;
universe@10 48 }
universe@10 49
universe@96 50 #mainMenu {
universe@98 51 position: fixed;
universe@98 52 z-index: 2;
universe@10 53 width: 100%;
universe@10 54 display: flex;
universe@10 55 flex-flow: row wrap;
universe@45 56 border-image-source: linear-gradient(to right, #606060, rgba(60, 60, 60, .25));
universe@45 57 border-image-slice: 1;
universe@45 58 border-bottom-style: solid;
universe@172 59 border-bottom-width: thin;
universe@45 60 }
universe@98 61
universe@96 62 #sideMenu {
universe@96 63 display: flex;
universe@98 64 z-index: 1;
universe@96 65 flex-flow: column;
universe@96 66 position: fixed;
universe@96 67 height: 100%;
universe@124 68 width: 40ch; /* adjust with sidebar-spacing.margin-left */
universe@98 69 padding-top: 2.25rem;
universe@109 70 color: #3060f8;
universe@96 71 border-image-source: linear-gradient(to bottom, #606060, rgba(60, 60, 60, .25));
universe@96 72 border-image-slice: 1;
universe@96 73 border-right-style: solid;
universe@172 74 border-right-width: thin;
universe@96 75 }
universe@96 76
universe@96 77 #content-area.sidebar-spacing {
universe@124 78 margin-left: 40ch; /* adjust with sideMenu.width */
universe@96 79 }
universe@45 80
universe@45 81 #mainMenu {
universe@98 82 font-size: 1.2rem;
universe@45 83 background: #e0e0e5;
universe@10 84 }
universe@10 85
universe@96 86 #sideMenu {
universe@10 87 background: #f7f7ff;
universe@97 88 overflow-x: scroll;
universe@10 89 }
universe@10 90
universe@96 91 #mainMenu .menuEntry {
universe@10 92 padding: .25em 1em .25em 1em;
universe@28 93 border-right-style: solid;
universe@172 94 border-right-width: thin;
universe@28 95 border-right-color: #9095a1;
universe@10 96 }
universe@10 97
universe@97 98 #sideMenu .menuEntry {
universe@97 99 padding-top: .25em;
universe@97 100 padding-bottom: .25em;
universe@97 101 border-bottom-style: solid;
universe@172 102 border-bottom-width: thin;
universe@97 103 border-bottom-color: #d7d7df;
universe@97 104 }
universe@97 105
universe@10 106 #mainMenu .menuEntry[data-active] {
universe@45 107 background: #d0d0d5;
universe@10 108 }
universe@10 109
universe@96 110 #sideMenu .menuEntry[data-active] {
universe@10 111 background: #e7e7ef
universe@10 112 }
universe@10 113
universe@97 114 #sideMenu .level-0 {
universe@97 115 padding-left: .25em;
universe@97 116 }
universe@97 117
universe@97 118 #sideMenu .level-1 {
universe@97 119 padding-left: .75em;
universe@97 120 }
universe@97 121
universe@97 122 #sideMenu .level-2 {
universe@97 123 padding-left: 2em;
universe@97 124 }
universe@97 125
universe@10 126 #content-area {
universe@98 127 padding: 2.75rem 1em 1em;
universe@10 128 }
universe@23 129
universe@47 130 button, a.button {
universe@47 131 display: inline-block;
universe@47 132 font-size: medium;
universe@103 133 border-style: solid;
universe@172 134 border-width: thin;
universe@103 135 border-color: #606060;
universe@47 136 color: inherit;
universe@47 137 background: #f0f0f0;
universe@47 138
universe@47 139 padding: .25em .5em .25em .5em;
universe@47 140 cursor: default;
universe@47 141 text-decoration: none;
universe@47 142 }
universe@47 143
universe@47 144 button:hover, a.button:hover {
universe@47 145 background: #f0f0ff;
universe@47 146 }
universe@47 147
universe@146 148 button[type=submit], a.button.submit {
universe@47 149 background: #20a0ff;
universe@47 150 color: white;
universe@47 151 }
universe@47 152
universe@146 153 button[type=submit]:hover, a.button.submit:hover {
universe@47 154 background: #1090cf;
universe@47 155 }
universe@47 156
universe@26 157 th {
universe@26 158 text-align: left;
universe@26 159 }
universe@26 160
universe@26 161 table.datatable {
universe@23 162 border-style: solid;
universe@172 163 border-width: thin;
universe@80 164 border-color: silver;
universe@23 165 border-collapse: collapse;
universe@23 166 }
universe@23 167
universe@26 168 table.datatable th {
universe@47 169 white-space: nowrap;
universe@23 170 font-weight: bold;
universe@103 171 background: #f7f7ff;
universe@23 172 }
universe@23 173
universe@26 174 table.datatable th, table.datatable td {
universe@23 175 border-style: solid;
universe@172 176 border-width: thin;
universe@103 177 border-color: lightgray;
universe@23 178 padding: .4em;
universe@23 179 }
universe@23 180
universe@26 181 table.datatable tr:nth-child(2n) {
universe@103 182 background: #faffff;
universe@23 183 }
universe@26 184
universe@47 185 table.formtable {
universe@47 186 border-style: none;
universe@47 187 border-collapse: separate;
universe@47 188 border-spacing: 1em;
universe@47 189 }
universe@47 190
universe@47 191 table.formtable th {
universe@47 192 font-weight: bold;
universe@47 193 text-align: left;
universe@47 194 vertical-align: center;
universe@47 195 white-space: nowrap;
universe@47 196 }
universe@47 197
universe@47 198 table.formtable tbody td > * {
universe@47 199 width: 100%;
universe@124 200 box-sizing: border-box;
universe@47 201 }
universe@47 202
universe@75 203 table.formtable input[type=date] {
universe@75 204 width: auto;
universe@75 205 }
universe@75 206
universe@47 207 table.formtable tfoot td {
universe@47 208 text-align: right;
universe@47 209 }
universe@47 210
universe@47 211 .fullwidth {
universe@47 212 width: 100%;
universe@47 213 }
universe@47 214
universe@47 215 .vtop {
universe@47 216 vertical-align: top;
universe@47 217 }
universe@47 218
universe@26 219 .hcenter {
universe@26 220 text-align: center;
universe@26 221 }
universe@26 222
universe@80 223 .hright {
universe@80 224 text-align: right;
universe@80 225 }
universe@80 226
universe@26 227 .smalltext {
universe@26 228 font-size: smaller;
universe@26 229 }
universe@26 230
universe@26 231 .nowrap {
universe@26 232 white-space: nowrap;
universe@47 233 }
universe@47 234
universe@47 235 .medskip {
universe@47 236 margin-top: .5em;
universe@47 237 }
universe@47 238
universe@101 239 .info-box, .error-box, .warn-box {
universe@47 240 margin: 2em;
universe@47 241 border-style: dashed;
universe@172 242 border-width: thin;
universe@47 243 border-color: deepskyblue;
universe@47 244 padding: 1em;
universe@101 245 }
universe@101 246
universe@101 247 .error-box {
universe@101 248 border-color: red;
universe@101 249 }
universe@101 250
universe@101 251 .warn-box {
universe@101 252 border-color: gold;
universe@101 253 }
universe@101 254
universe@101 255 .table {
universe@101 256 display: table;
universe@101 257 border-spacing: .5em;
universe@101 258 margin: -.5em;
universe@101 259 }
universe@101 260
universe@101 261 .row {
universe@101 262 display: table-row;
universe@101 263 }
universe@101 264
universe@101 265 .caption {
universe@101 266 font-weight: bold;
universe@101 267 }
universe@101 268
universe@101 269 .row > div {
universe@101 270 display: table-cell;
universe@101 271 }
universe@162 272
universe@162 273 /* MARKDOWN STYLES */
universe@162 274
universe@162 275 div.markdown-styled p:first-child {
universe@162 276 margin-top: 0;
universe@162 277 }
universe@162 278
universe@162 279 div.markdown-styled table {
universe@162 280 border-collapse: collapse;
universe@162 281 }
universe@162 282
universe@162 283 div.markdown-styled td,
universe@162 284 div.markdown-styled th {
universe@162 285 padding: 0.25em;
universe@162 286 border-style: solid;
universe@162 287 border-color: darkgray;
universe@172 288 border-width: thin;
universe@162 289 }

mercurial