src/main/webapp/lightpit.css

Tue, 03 Aug 2021 13:41:32 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 03 Aug 2021 13:41:32 +0200
changeset 209
c9c6abf167c7
parent 207
479dd7993ef9
child 211
8066895cc57e
permissions
-rw-r--r--

#21 adds input validation mechanism

Also upgrades to Kotlin 1.5.21

universe@10 1 /*
universe@10 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@10 3 *
universe@180 4 * Copyright 2021 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@207 46 cursor: pointer;
universe@11 47 color: #3060f8;
universe@10 48 text-decoration: none;
universe@10 49 }
universe@10 50
universe@96 51 #mainMenu {
universe@98 52 position: fixed;
universe@98 53 z-index: 2;
universe@10 54 width: 100%;
universe@10 55 display: flex;
universe@10 56 flex-flow: row wrap;
universe@45 57 border-image-source: linear-gradient(to right, #606060, rgba(60, 60, 60, .25));
universe@45 58 border-image-slice: 1;
universe@45 59 border-bottom-style: solid;
universe@172 60 border-bottom-width: thin;
universe@45 61 }
universe@98 62
universe@96 63 #sideMenu {
universe@96 64 display: flex;
universe@98 65 z-index: 1;
universe@96 66 flex-flow: column;
universe@96 67 position: fixed;
universe@96 68 height: 100%;
universe@124 69 width: 40ch; /* adjust with sidebar-spacing.margin-left */
universe@98 70 padding-top: 2.25rem;
universe@109 71 color: #3060f8;
universe@96 72 border-image-source: linear-gradient(to bottom, #606060, rgba(60, 60, 60, .25));
universe@96 73 border-image-slice: 1;
universe@96 74 border-right-style: solid;
universe@172 75 border-right-width: thin;
universe@96 76 }
universe@96 77
universe@96 78 #content-area.sidebar-spacing {
universe@124 79 margin-left: 40ch; /* adjust with sideMenu.width */
universe@96 80 }
universe@45 81
universe@45 82 #mainMenu {
universe@98 83 font-size: 1.2rem;
universe@45 84 background: #e0e0e5;
universe@10 85 }
universe@10 86
universe@96 87 #sideMenu {
universe@10 88 background: #f7f7ff;
universe@97 89 overflow-x: scroll;
universe@10 90 }
universe@10 91
universe@96 92 #mainMenu .menuEntry {
universe@10 93 padding: .25em 1em .25em 1em;
universe@28 94 border-right-style: solid;
universe@172 95 border-right-width: thin;
universe@28 96 border-right-color: #9095a1;
universe@10 97 }
universe@10 98
universe@97 99 #sideMenu .menuEntry {
universe@97 100 padding-top: .25em;
universe@97 101 padding-bottom: .25em;
universe@97 102 border-bottom-style: solid;
universe@172 103 border-bottom-width: thin;
universe@97 104 border-bottom-color: #d7d7df;
universe@97 105 }
universe@97 106
universe@10 107 #mainMenu .menuEntry[data-active] {
universe@45 108 background: #d0d0d5;
universe@10 109 }
universe@10 110
universe@96 111 #sideMenu .menuEntry[data-active] {
universe@10 112 background: #e7e7ef
universe@10 113 }
universe@10 114
universe@97 115 #sideMenu .level-0 {
universe@97 116 padding-left: .25em;
universe@97 117 }
universe@97 118
universe@97 119 #sideMenu .level-1 {
universe@97 120 padding-left: .75em;
universe@97 121 }
universe@97 122
universe@97 123 #sideMenu .level-2 {
universe@97 124 padding-left: 2em;
universe@97 125 }
universe@97 126
universe@10 127 #content-area {
universe@98 128 padding: 2.75rem 1em 1em;
universe@10 129 }
universe@23 130
universe@47 131 button, a.button {
universe@47 132 display: inline-block;
universe@47 133 font-size: medium;
universe@103 134 border-style: solid;
universe@172 135 border-width: thin;
universe@103 136 border-color: #606060;
universe@47 137 color: inherit;
universe@47 138 background: #f0f0f0;
universe@47 139
universe@47 140 padding: .25em .5em .25em .5em;
universe@47 141 cursor: default;
universe@47 142 text-decoration: none;
universe@47 143 }
universe@47 144
universe@47 145 button:hover, a.button:hover {
universe@47 146 background: #f0f0ff;
universe@47 147 }
universe@47 148
universe@146 149 button[type=submit], a.button.submit {
universe@47 150 background: #20a0ff;
universe@47 151 color: white;
universe@47 152 }
universe@47 153
universe@146 154 button[type=submit]:hover, a.button.submit:hover {
universe@47 155 background: #1090cf;
universe@47 156 }
universe@47 157
universe@26 158 th {
universe@26 159 text-align: left;
universe@26 160 }
universe@26 161
universe@26 162 table.datatable {
universe@23 163 border-style: solid;
universe@172 164 border-width: thin;
universe@80 165 border-color: silver;
universe@23 166 border-collapse: collapse;
universe@23 167 }
universe@23 168
universe@26 169 table.datatable th {
universe@47 170 white-space: nowrap;
universe@23 171 font-weight: bold;
universe@103 172 background: #f7f7ff;
universe@23 173 }
universe@23 174
universe@26 175 table.datatable th, table.datatable td {
universe@23 176 border-style: solid;
universe@172 177 border-width: thin;
universe@103 178 border-color: lightgray;
universe@23 179 padding: .4em;
universe@23 180 }
universe@23 181
universe@26 182 table.datatable tr:nth-child(2n) {
universe@103 183 background: #faffff;
universe@23 184 }
universe@26 185
universe@47 186 table.formtable {
universe@47 187 border-style: none;
universe@47 188 border-collapse: separate;
universe@47 189 border-spacing: 1em;
universe@47 190 }
universe@47 191
universe@47 192 table.formtable th {
universe@47 193 font-weight: bold;
universe@47 194 text-align: left;
universe@47 195 vertical-align: center;
universe@47 196 white-space: nowrap;
universe@47 197 }
universe@47 198
universe@47 199 table.formtable tbody td > * {
universe@47 200 width: 100%;
universe@209 201 margin: 0;
universe@124 202 box-sizing: border-box;
universe@47 203 }
universe@47 204
universe@75 205 table.formtable input[type=date] {
universe@75 206 width: auto;
universe@75 207 }
universe@75 208
universe@47 209 table.formtable tfoot td {
universe@47 210 text-align: right;
universe@47 211 }
universe@47 212
universe@47 213 .fullwidth {
universe@47 214 width: 100%;
universe@47 215 }
universe@47 216
universe@47 217 .vtop {
universe@47 218 vertical-align: top;
universe@47 219 }
universe@47 220
universe@26 221 .hcenter {
universe@26 222 text-align: center;
universe@26 223 }
universe@26 224
universe@80 225 .hright {
universe@80 226 text-align: right;
universe@80 227 }
universe@80 228
universe@26 229 .smalltext {
universe@26 230 font-size: smaller;
universe@26 231 }
universe@26 232
universe@26 233 .nowrap {
universe@26 234 white-space: nowrap;
universe@47 235 }
universe@47 236
universe@47 237 .medskip {
universe@47 238 margin-top: .5em;
universe@47 239 }
universe@47 240
universe@101 241 .info-box, .error-box, .warn-box {
universe@209 242 margin: 1.5em;
universe@47 243 border-style: dashed;
universe@172 244 border-width: thin;
universe@47 245 border-color: deepskyblue;
universe@47 246 padding: 1em;
universe@101 247 }
universe@101 248
universe@101 249 .error-box {
universe@209 250 border-style: outset;
universe@101 251 border-color: red;
universe@209 252 background: lightcoral;
universe@101 253 }
universe@101 254
universe@101 255 .warn-box {
universe@209 256 border-style: outset;
universe@101 257 border-color: gold;
universe@209 258 background: lightgoldenrodyellow;
universe@101 259 }
universe@101 260
universe@101 261 .table {
universe@101 262 display: table;
universe@101 263 border-spacing: .5em;
universe@101 264 margin: -.5em;
universe@101 265 }
universe@101 266
universe@101 267 .row {
universe@101 268 display: table-row;
universe@101 269 }
universe@101 270
universe@101 271 .caption {
universe@101 272 font-weight: bold;
universe@101 273 }
universe@101 274
universe@101 275 .row > div {
universe@101 276 display: table-cell;
universe@101 277 }
universe@162 278
universe@162 279 /* MARKDOWN STYLES */
universe@162 280
universe@162 281 div.markdown-styled p:first-child {
universe@162 282 margin-top: 0;
universe@162 283 }
universe@162 284
universe@162 285 div.markdown-styled table {
universe@162 286 border-collapse: collapse;
universe@162 287 }
universe@162 288
universe@162 289 div.markdown-styled td,
universe@162 290 div.markdown-styled th {
universe@162 291 padding: 0.25em;
universe@162 292 border-style: solid;
universe@162 293 border-color: darkgray;
universe@172 294 border-width: thin;
universe@162 295 }

mercurial