Wed, 18 Aug 2021 16:02:40 +0200
changes how form elements are stretched to 100% width
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@211 | 30 | @font-face { |
universe@211 | 31 | font-family: LightPIT; |
universe@211 | 32 | src: url('fonts/MPLUS1p-Thin.ttf'); |
universe@211 | 33 | font-weight: 100; |
universe@211 | 34 | } |
universe@211 | 35 | |
universe@211 | 36 | @font-face { |
universe@211 | 37 | font-family: LightPIT; |
universe@211 | 38 | src: url('fonts/MPLUS1p-Light.ttf'); |
universe@211 | 39 | font-weight: 300; |
universe@211 | 40 | } |
universe@211 | 41 | |
universe@211 | 42 | @font-face { |
universe@211 | 43 | font-family: LightPIT; |
universe@211 | 44 | src: url('fonts/MPLUS1p-Regular.ttf'); |
universe@211 | 45 | font-weight: 400; |
universe@211 | 46 | } |
universe@211 | 47 | |
universe@211 | 48 | @font-face { |
universe@211 | 49 | font-family: LightPIT; |
universe@211 | 50 | src: url('fonts/MPLUS1p-Medium.ttf'); |
universe@211 | 51 | font-weight: 500; |
universe@211 | 52 | } |
universe@211 | 53 | |
universe@211 | 54 | @font-face { |
universe@211 | 55 | font-family: LightPIT; |
universe@211 | 56 | src: url('fonts/MPLUS1p-Bold.ttf'); |
universe@211 | 57 | font-weight: 700; |
universe@211 | 58 | } |
universe@211 | 59 | |
universe@10 | 60 | html { |
universe@211 | 61 | font-family: LightPIT,sans-serif; |
universe@52 | 62 | font-size: 11pt; |
universe@47 | 63 | background: white; |
universe@47 | 64 | color: #1c204e; |
universe@47 | 65 | margin: 0; |
universe@47 | 66 | padding: 0; |
universe@217 | 67 | height: 100vh; |
universe@10 | 68 | } |
universe@10 | 69 | |
universe@10 | 70 | body { |
universe@47 | 71 | height: 100%; |
universe@47 | 72 | margin: 0; |
universe@47 | 73 | padding: 0; |
universe@26 | 74 | } |
universe@26 | 75 | |
universe@213 | 76 | textarea, input, button, select { |
universe@213 | 77 | font-family: inherit; |
universe@213 | 78 | font-size: inherit; |
universe@213 | 79 | } |
universe@213 | 80 | |
universe@10 | 81 | a { |
universe@207 | 82 | cursor: pointer; |
universe@11 | 83 | color: #3060f8; |
universe@10 | 84 | text-decoration: none; |
universe@10 | 85 | } |
universe@10 | 86 | |
universe@217 | 87 | #body-area { |
universe@217 | 88 | display: grid; |
universe@219 | 89 | grid-template-columns: min-content auto; |
universe@217 | 90 | grid-template-rows: max-content 1fr; |
universe@217 | 91 | height: 100%; |
universe@217 | 92 | } |
universe@217 | 93 | |
universe@96 | 94 | #mainMenu { |
universe@217 | 95 | grid-row: 1; |
universe@217 | 96 | grid-column: 1 / span 2; |
universe@10 | 97 | width: 100%; |
universe@10 | 98 | display: flex; |
universe@10 | 99 | flex-flow: row wrap; |
universe@45 | 100 | border-image-source: linear-gradient(to right, #606060, rgba(60, 60, 60, .25)); |
universe@45 | 101 | border-image-slice: 1; |
universe@45 | 102 | border-bottom-style: solid; |
universe@172 | 103 | border-bottom-width: thin; |
universe@217 | 104 | font-size: 1.2rem; |
universe@217 | 105 | background: #e0e0e5; |
universe@45 | 106 | } |
universe@98 | 107 | |
universe@96 | 108 | #sideMenu { |
universe@217 | 109 | grid-row: 2; |
universe@217 | 110 | grid-column: 1; |
universe@223 | 111 | min-width: 15vw; |
universe@96 | 112 | display: flex; |
universe@96 | 113 | flex-flow: column; |
universe@109 | 114 | color: #3060f8; |
universe@96 | 115 | border-image-source: linear-gradient(to bottom, #606060, rgba(60, 60, 60, .25)); |
universe@96 | 116 | border-image-slice: 1; |
universe@96 | 117 | border-right-style: solid; |
universe@172 | 118 | border-right-width: thin; |
universe@10 | 119 | background: #f7f7ff; |
universe@10 | 120 | } |
universe@10 | 121 | |
universe@219 | 122 | #sideMenuFiller { |
universe@219 | 123 | grid-row: 2; |
universe@219 | 124 | grid-column: 1; |
universe@219 | 125 | } |
universe@219 | 126 | |
universe@96 | 127 | #mainMenu .menuEntry { |
universe@10 | 128 | padding: .25em 1em .25em 1em; |
universe@28 | 129 | border-right-style: solid; |
universe@172 | 130 | border-right-width: thin; |
universe@28 | 131 | border-right-color: #9095a1; |
universe@10 | 132 | } |
universe@10 | 133 | |
universe@97 | 134 | #sideMenu .menuEntry { |
universe@219 | 135 | white-space: nowrap; |
universe@220 | 136 | padding-right: 2em; |
universe@97 | 137 | padding-top: .25em; |
universe@97 | 138 | padding-bottom: .25em; |
universe@97 | 139 | border-bottom-style: solid; |
universe@172 | 140 | border-bottom-width: thin; |
universe@97 | 141 | border-bottom-color: #d7d7df; |
universe@97 | 142 | } |
universe@97 | 143 | |
universe@10 | 144 | #mainMenu .menuEntry[data-active] { |
universe@45 | 145 | background: #d0d0d5; |
universe@10 | 146 | } |
universe@10 | 147 | |
universe@96 | 148 | #sideMenu .menuEntry[data-active] { |
universe@10 | 149 | background: #e7e7ef |
universe@10 | 150 | } |
universe@10 | 151 | |
universe@97 | 152 | #sideMenu .level-0 { |
universe@220 | 153 | padding-left: .75em; |
universe@97 | 154 | } |
universe@97 | 155 | |
universe@97 | 156 | #sideMenu .level-1 { |
universe@220 | 157 | padding-left: 1.25em; |
universe@97 | 158 | } |
universe@97 | 159 | |
universe@97 | 160 | #sideMenu .level-2 { |
universe@220 | 161 | padding-left: 2.5em; |
universe@97 | 162 | } |
universe@97 | 163 | |
universe@10 | 164 | #content-area { |
universe@217 | 165 | grid-row: 2; |
universe@217 | 166 | grid-column: 2; |
universe@217 | 167 | padding: 1.5em; |
universe@10 | 168 | } |
universe@23 | 169 | |
universe@47 | 170 | button, a.button { |
universe@47 | 171 | display: inline-block; |
universe@47 | 172 | font-size: medium; |
universe@103 | 173 | border-style: solid; |
universe@172 | 174 | border-width: thin; |
universe@103 | 175 | border-color: #606060; |
universe@47 | 176 | color: inherit; |
universe@47 | 177 | background: #f0f0f0; |
universe@47 | 178 | |
universe@47 | 179 | padding: .25em .5em .25em .5em; |
universe@47 | 180 | cursor: default; |
universe@47 | 181 | text-decoration: none; |
universe@222 | 182 | font-variant-caps: small-caps; |
universe@47 | 183 | } |
universe@47 | 184 | |
universe@47 | 185 | button:hover, a.button:hover { |
universe@47 | 186 | background: #f0f0ff; |
universe@47 | 187 | } |
universe@47 | 188 | |
universe@146 | 189 | button[type=submit], a.button.submit { |
universe@47 | 190 | background: #20a0ff; |
universe@47 | 191 | color: white; |
universe@47 | 192 | } |
universe@47 | 193 | |
universe@146 | 194 | button[type=submit]:hover, a.button.submit:hover { |
universe@47 | 195 | background: #1090cf; |
universe@47 | 196 | } |
universe@47 | 197 | |
universe@26 | 198 | th { |
universe@26 | 199 | text-align: left; |
universe@26 | 200 | } |
universe@26 | 201 | |
universe@26 | 202 | table.datatable { |
universe@23 | 203 | border-style: solid; |
universe@172 | 204 | border-width: thin; |
universe@80 | 205 | border-color: silver; |
universe@23 | 206 | border-collapse: collapse; |
universe@23 | 207 | } |
universe@23 | 208 | |
universe@26 | 209 | table.datatable th { |
universe@47 | 210 | white-space: nowrap; |
universe@23 | 211 | font-weight: bold; |
universe@103 | 212 | background: #f7f7ff; |
universe@23 | 213 | } |
universe@23 | 214 | |
universe@26 | 215 | table.datatable th, table.datatable td { |
universe@23 | 216 | border-style: solid; |
universe@172 | 217 | border-width: thin; |
universe@103 | 218 | border-color: lightgray; |
universe@23 | 219 | padding: .4em; |
universe@23 | 220 | } |
universe@23 | 221 | |
universe@26 | 222 | table.datatable tr:nth-child(2n) { |
universe@103 | 223 | background: #faffff; |
universe@23 | 224 | } |
universe@26 | 225 | |
universe@47 | 226 | table.formtable { |
universe@47 | 227 | border-style: none; |
universe@47 | 228 | border-collapse: separate; |
universe@47 | 229 | border-spacing: 1em; |
universe@47 | 230 | } |
universe@47 | 231 | |
universe@47 | 232 | table.formtable th { |
universe@47 | 233 | font-weight: bold; |
universe@47 | 234 | text-align: left; |
universe@47 | 235 | vertical-align: center; |
universe@47 | 236 | white-space: nowrap; |
universe@47 | 237 | } |
universe@47 | 238 | |
universe@47 | 239 | table.formtable tbody td > * { |
universe@209 | 240 | margin: 0; |
universe@124 | 241 | box-sizing: border-box; |
universe@47 | 242 | } |
universe@47 | 243 | |
universe@230 | 244 | table.formtable input[type=text], |
universe@230 | 245 | table.formtable input[type=number], |
universe@230 | 246 | table.formtable select, |
universe@230 | 247 | table.formtable textarea { |
universe@230 | 248 | width: 100%; |
universe@230 | 249 | } |
universe@230 | 250 | |
universe@47 | 251 | table.formtable tfoot td { |
universe@47 | 252 | text-align: right; |
universe@47 | 253 | } |
universe@47 | 254 | |
universe@47 | 255 | .fullwidth { |
universe@47 | 256 | width: 100%; |
universe@47 | 257 | } |
universe@47 | 258 | |
universe@47 | 259 | .vtop { |
universe@47 | 260 | vertical-align: top; |
universe@47 | 261 | } |
universe@47 | 262 | |
universe@26 | 263 | .hcenter { |
universe@26 | 264 | text-align: center; |
universe@26 | 265 | } |
universe@26 | 266 | |
universe@80 | 267 | .hright { |
universe@80 | 268 | text-align: right; |
universe@80 | 269 | } |
universe@80 | 270 | |
universe@26 | 271 | .smalltext { |
universe@26 | 272 | font-size: smaller; |
universe@26 | 273 | } |
universe@26 | 274 | |
universe@26 | 275 | .nowrap { |
universe@26 | 276 | white-space: nowrap; |
universe@47 | 277 | } |
universe@47 | 278 | |
universe@47 | 279 | .medskip { |
universe@47 | 280 | margin-top: .5em; |
universe@47 | 281 | } |
universe@47 | 282 | |
universe@101 | 283 | .info-box, .error-box, .warn-box { |
universe@209 | 284 | margin: 1.5em; |
universe@47 | 285 | border-style: dashed; |
universe@172 | 286 | border-width: thin; |
universe@47 | 287 | border-color: deepskyblue; |
universe@47 | 288 | padding: 1em; |
universe@101 | 289 | } |
universe@101 | 290 | |
universe@101 | 291 | .error-box { |
universe@209 | 292 | border-style: outset; |
universe@101 | 293 | border-color: red; |
universe@209 | 294 | background: lightcoral; |
universe@101 | 295 | } |
universe@101 | 296 | |
universe@101 | 297 | .warn-box { |
universe@209 | 298 | border-style: outset; |
universe@101 | 299 | border-color: gold; |
universe@209 | 300 | background: lightgoldenrodyellow; |
universe@101 | 301 | } |
universe@101 | 302 | |
universe@101 | 303 | .table { |
universe@101 | 304 | display: table; |
universe@101 | 305 | border-spacing: .5em; |
universe@101 | 306 | margin: -.5em; |
universe@101 | 307 | } |
universe@101 | 308 | |
universe@101 | 309 | .row { |
universe@101 | 310 | display: table-row; |
universe@101 | 311 | } |
universe@101 | 312 | |
universe@101 | 313 | .caption { |
universe@101 | 314 | font-weight: bold; |
universe@101 | 315 | } |
universe@101 | 316 | |
universe@101 | 317 | .row > div { |
universe@101 | 318 | display: table-cell; |
universe@101 | 319 | } |
universe@162 | 320 | |
universe@162 | 321 | /* MARKDOWN STYLES */ |
universe@162 | 322 | |
universe@162 | 323 | div.markdown-styled p:first-child { |
universe@162 | 324 | margin-top: 0; |
universe@162 | 325 | } |
universe@162 | 326 | |
universe@162 | 327 | div.markdown-styled table { |
universe@162 | 328 | border-collapse: collapse; |
universe@162 | 329 | } |
universe@162 | 330 | |
universe@162 | 331 | div.markdown-styled td, |
universe@162 | 332 | div.markdown-styled th { |
universe@162 | 333 | padding: 0.25em; |
universe@162 | 334 | border-style: solid; |
universe@162 | 335 | border-color: darkgray; |
universe@172 | 336 | border-width: thin; |
universe@162 | 337 | } |