X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=common.css;h=f9b17ad8dc34dd3730429452ef05cc5bccfd883d;hp=4b9501b607e979ea9e9b38a7a997affaaf47e11a;hb=6455a7f85522fd319caa8cb7cffa93b4ee9ca4b9;hpb=01b13a65484a01f314d6d97c74b48216ead2bc24 diff --git a/common.css b/common.css index 4b9501b..f9b17ad 100644 --- a/common.css +++ b/common.css @@ -60,11 +60,11 @@ h2 { font-size: 1.125em; } select, input, button, textarea, a.button { display: inline-block; - background-color: #FFF; + color: #000; background-color: #FFF; border: .5pt solid; padding: .25em .75em; vertical-align: text-bottom; - border: 1pt solid #888; + border: .5pt solid #000; border-radius: 2pt; } select { padding: .375em 0; } @@ -87,6 +87,20 @@ input + label { margin-left: .375em; } +@media print { + @page { margin: 20mm; } + + h1 { text-align: center; } + + h1, h2, h3, h4, h5, h6, form legend { + page-break-inside: avoid; + page-break-after: avoid; + page-break-before: auto; + } + li { page-break-inside: avoid; } + th, dt { page-break-after: avoid; } +} + /* ======= End Generic Styles ======= */ /* ======= Common Styles ======= */ @@ -97,8 +111,7 @@ input + label { bottom: -100%; left: 50%; transform: translate(-50%, 0); content: attr(tooltip); padding: .5em; - background-color: #FFC; - color: #000; + color: #000; background-color: #FFC; border: .5pt solid; z-index: 1; } @@ -107,7 +120,7 @@ input[type=radio].tab { display: none; } input[type=radio].tab + label { display: table-cell; padding: .5em 1em; - background-color: #EEE; + color: #000; background-color: #EEE; border: .5pt solid; } input[type=radio].tab:checked + label { @@ -119,8 +132,8 @@ input[type=radio].tab:checked + label { input[type=radio].tab ~ *.tab { display: none; width: 100%; - margin-top: 0; padding: .25em .75em; - border: .5pt solid; border-top: none; + margin-top: -.5pt; padding: .25em .75em; + border: .5pt solid; border-radius: 0; box-shadow: .125em .125em .125em #888; }