src/main/webapp/lightpit.css

Tue, 03 Aug 2021 14:46:04 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 03 Aug 2021 14:46:04 +0200
changeset 211
8066895cc57e
parent 209
c9c6abf167c7
child 213
5b55a5318a83
permissions
-rw-r--r--

adds pretty font

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

mercurial