taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

styles.css (10874B)


      1 /* Hand-written styles for www.taler.net.  Everything else under static/dist/
      2  * is an unmodified upstream distribution.  This file is loaded after
      3  * dist/bootstrap/bootstrap.min.css, so a rule here wins over Bootstrap's at
      4  * equal specificity.
      5  */
      6 
      7 /* ---------------------------------------------------------------- tokens */
      8 
      9 :root {
     10   --brand-blue: #0042b3;
     11   --brand-blue-dark: #003281;
     12   --brand-blue-light: #eef4ff;
     13   --brand-green: #a5c663;
     14   --border: #d8dee8;
     15   --text-muted: #545b66;
     16   --focus-ring: #f5a623;
     17 }
     18 
     19 /* ------------------------------------------------------------------ base */
     20 
     21 html {
     22   /* always reserve the scrollbar, so navigating between a short and a long
     23    * page does not shift the layout sideways
     24    */
     25   overflow-y: scroll;
     26 }
     27 
     28 a,
     29 a:link,
     30 a:visited {
     31   text-decoration: grey underline;
     32   color: black;
     33 }
     34 
     35 nav a,
     36 nav a:link,
     37 nav a:visited {
     38   text-decoration: none;
     39 }
     40 
     41 /* The skip link is off-screen until it takes focus; display:none would
     42  * take it out of the tab order as well.
     43  */
     44 .skip {
     45   position: absolute;
     46   left: -10000px;
     47   top: auto;
     48   width: 1px;
     49   height: 1px;
     50   overflow: hidden;
     51 }
     52 
     53 .skip:focus {
     54   position: static;
     55   width: auto;
     56   height: auto;
     57   background: white;
     58   padding: 5px;
     59 }
     60 
     61 /* ------------------------------------------------------------ page frame */
     62 
     63 #mybody {
     64   /* override ugly bootstrap defaults */
     65   color: black;
     66   position: relative;
     67   min-height: 100%;
     68 }
     69 
     70 #mybody nav {
     71   border-radius: 0px;
     72 }
     73 
     74 #body_content {
     75   /* push footer down */
     76   min-height: 80vh;
     77 }
     78 
     79 #body_content .container {
     80   margin-bottom: 2em;
     81   padding-top: 1em;
     82   padding-bottom: 1em;
     83 }
     84 
     85 #body_content a {
     86   transition: background-color 0.3s;
     87 }
     88 
     89 #body_content a:hover {
     90   background-color: rgba(200, 200, 200, 0.5);
     91 }
     92 
     93 footer {
     94   position: relative;
     95   min-height: 340px;
     96   padding-top: 2em;
     97   margin-top: 2em;
     98 }
     99 
    100 .footer-list {
    101   list-style: none;
    102 }
    103 
    104 /* Back-to-top button, rendered by common/news.j2 at the top of #body_content.
    105  * It is taken out of the flow and pinned to the bottom right corner; without
    106  * this it shows up as a stray chevron above the page heading.
    107  */
    108 #jump-top {
    109   position: fixed;
    110   right: 1rem;
    111   bottom: 1rem;
    112   z-index: 500;
    113   display: flex;
    114   align-items: center;
    115   justify-content: center;
    116   width: 44px;
    117   height: 44px;
    118   border: 1px solid var(--border);
    119   border-radius: 50%;
    120   background: rgba(255, 255, 255, 0.92);
    121   box-shadow: 0 0.15rem 0.5rem rgba(21, 39, 68, 0.18);
    122   color: var(--brand-blue);
    123   text-decoration: none;
    124 }
    125 
    126 #jump-top:link,
    127 #jump-top:visited {
    128   color: var(--brand-blue);
    129   text-decoration: none;
    130 }
    131 
    132 #jump-top:hover {
    133   background: var(--brand-blue-light);
    134   color: var(--brand-blue-dark);
    135 }
    136 
    137 #jump-top:focus-visible {
    138   outline: 3px solid var(--focus-ring);
    139   outline-offset: 3px;
    140 }
    141 
    142 @media print {
    143   #jump-top {
    144     display: none;
    145   }
    146 }
    147 
    148 /* overrides bootstrap defaults.  */
    149 .navbar-brand {
    150   display: contents;
    151 }
    152 
    153 .btn-dark {
    154   background-color: #595959;
    155 }
    156 
    157 /* ------------------------------------------------------------ components */
    158 
    159 .c_acronym {
    160   background-color: var(--brand-green);
    161 }
    162 
    163 .checkmark {
    164   height: 1em;
    165   width: 1em;
    166   margin-right: 0.3em;
    167   vertical-align: baseline;
    168   position: relative;
    169   top: 0.2em;
    170 }
    171 
    172 .checklist {
    173   margin-top: 1em;
    174   margin-bottom: 1em;
    175   list-style-type: none;
    176   padding-left: 0px;
    177   font-size: 1.2rem;
    178 }
    179 
    180 /* text highlighted with a translucent marker-pen stroke */
    181 .tlr {
    182   display: inline-block;
    183   position: relative;
    184 }
    185 
    186 .tlr::before {
    187   content: "";
    188   position: absolute;
    189   width: 100%;
    190   height: 25%;
    191   bottom: 0;
    192   left: 0.2em;
    193   background: rgba(170, 57, 57, 0.3);
    194   z-index: -1;
    195 }
    196 
    197 .timeline header {
    198   text-align: left;
    199   margin-bottom: 5px;
    200 }
    201 
    202 ul.timeline {
    203   list-style-type: none;
    204   position: relative;
    205 }
    206 
    207 ul.timeline::before {
    208   content: ' ';
    209   background: #d4d9df;
    210   display: inline-block;
    211   position: absolute;
    212   left: 29px;
    213   width: 2px;
    214   height: 100%;
    215   z-index: 400;
    216 }
    217 
    218 ul.timeline > li {
    219   margin: 20px 0;
    220   padding-left: 20px;
    221 }
    222 
    223 ul.timeline > li::before {
    224   content: ' ';
    225   background: white;
    226   display: inline-block;
    227   position: absolute;
    228   border-radius: 50%;
    229   border: 3px solid var(--brand-blue);
    230   left: 20px;
    231   width: 20px;
    232   height: 20px;
    233   z-index: 400;
    234 }
    235 
    236 /* ------------------------------------------- consortium (NGI Taler) page */
    237 
    238 .consortium a,
    239 .consortium a:link,
    240 .consortium a:visited {
    241   text-decoration: underline;
    242   color: black;
    243 }
    244 
    245 .consortium h4 {
    246   color: #555;
    247   text-align: left;
    248   text-transform: uppercase;
    249   font-weight: bold;
    250   position: relative;
    251   margin: 30px 0 60px;
    252   padding: 5px;
    253 }
    254 
    255 .consortium h4::after {
    256   content: "";
    257   width: 170px;
    258   position: absolute;
    259   text-align: left;
    260   height: 13%;
    261   bottom: 0;
    262   left: 0.2em;
    263   background: #4e7bca;
    264   z-index: -1;
    265 }
    266 
    267 .consortium .list-group {
    268   max-height: 400px;
    269   margin-bottom: 10px;
    270   overflow: auto;
    271   -webkit-overflow-scrolling: touch;
    272 }
    273 
    274 .consortium .mb-1 {
    275   color: #555;
    276 }
    277 
    278 .consortium .list-group-item,
    279 .consortium .list-group-item-action {
    280   text-decoration: none;
    281 }
    282 
    283 /* ----------------------------------------------------------- wallet page */
    284 
    285 .wallet-hero {
    286   background: linear-gradient(135deg, #f7faff 0%, var(--brand-blue-light) 100%);
    287   border-bottom: 1px solid var(--border);
    288   padding: 3.5rem 1rem 3rem;
    289   text-align: center;
    290 }
    291 
    292 #body_content .wallet-hero .container {
    293   margin-bottom: 0;
    294   max-width: 800px;
    295   padding-bottom: 0;
    296   padding-top: 0;
    297 }
    298 
    299 .wallet-hero h1 {
    300   font-size: clamp(2.25rem, 5vw, 3.5rem);
    301   font-weight: 700;
    302   letter-spacing: -0.03em;
    303   margin-bottom: 1rem;
    304 }
    305 
    306 .wallet-lead {
    307   color: #303641;
    308   font-size: 1.2rem;
    309   line-height: 1.6;
    310   margin: 0 auto;
    311   max-width: 720px;
    312 }
    313 
    314 .wallet-highlights {
    315   display: flex;
    316   flex-wrap: wrap;
    317   gap: 0.75rem 1.5rem;
    318   justify-content: center;
    319   list-style: none;
    320   margin: 1.5rem 0 0;
    321   padding: 0;
    322 }
    323 
    324 .wallet-highlights li::before {
    325   color: #357a22;
    326   content: "\2713";
    327   font-weight: 700;
    328   margin-right: 0.4rem;
    329 }
    330 
    331 /* The element also carries .container, so .wallet-page is needed to outrank
    332  * #body_content .container above, which is otherwise equally specific and
    333  * comes later.
    334  */
    335 #body_content .wallet-page .wallet-content {
    336   max-width: 1120px;
    337   padding-top: 1rem;
    338   padding-bottom: 0;
    339 }
    340 
    341 .wallet-section {
    342   margin-top: 3.5rem;
    343 }
    344 
    345 .wallet-section-heading {
    346   margin-bottom: 1.25rem;
    347 }
    348 
    349 .wallet-section-heading h2,
    350 .wallet-action-notice h2,
    351 .wallet-demo h2,
    352 .wallet-resources h2 {
    353   font-size: clamp(1.6rem, 3vw, 2rem);
    354   font-weight: 650;
    355   margin-bottom: 0.35rem;
    356 }
    357 
    358 .wallet-section-heading p {
    359   color: var(--text-muted);
    360   margin: 0;
    361 }
    362 
    363 .wallet-grid {
    364   display: grid;
    365   gap: 1.5rem;
    366   grid-template-columns: repeat(2, minmax(0, 1fr));
    367 }
    368 
    369 .wallet-card {
    370   background: #fff;
    371   border: 1px solid var(--border);
    372   border-radius: 0.75rem;
    373   box-shadow: 0 0.25rem 1rem rgba(21, 39, 68, 0.06);
    374   display: flex;
    375   flex-direction: column;
    376   justify-content: space-between;
    377   min-height: 250px;
    378   padding: 1.5rem;
    379 }
    380 
    381 .wallet-card h3 {
    382   font-size: 1.65rem;
    383   margin-bottom: 0.65rem;
    384 }
    385 
    386 .wallet-card p:not(.wallet-platform-label) {
    387   color: var(--text-muted);
    388 }
    389 
    390 .wallet-platform-label {
    391   color: var(--brand-blue);
    392   font-size: 0.8rem;
    393   font-weight: 700;
    394   letter-spacing: 0.08em;
    395   margin-bottom: 0.45rem;
    396   text-transform: uppercase;
    397 }
    398 
    399 .wallet-actions {
    400   display: flex;
    401   flex-wrap: wrap;
    402   gap: 0.75rem;
    403   margin-top: 1.5rem;
    404 }
    405 
    406 #body_content .wallet-page a.wallet-button {
    407   align-items: center;
    408   border: 2px solid var(--brand-blue);
    409   border-radius: 0.4rem;
    410   display: inline-flex;
    411   font-weight: 600;
    412   justify-content: center;
    413   min-height: 44px;
    414   padding: 0.55rem 1rem;
    415   text-align: center;
    416   text-decoration: none;
    417 }
    418 
    419 #body_content .wallet-page a.wallet-button-primary,
    420 #body_content .wallet-page a.wallet-button-primary:link,
    421 #body_content .wallet-page a.wallet-button-primary:visited {
    422   background: var(--brand-blue);
    423   color: #fff;
    424 }
    425 
    426 #body_content .wallet-page a.wallet-button-primary:hover {
    427   background: var(--brand-blue-dark);
    428   border-color: var(--brand-blue-dark);
    429   color: #fff;
    430 }
    431 
    432 #body_content .wallet-page a.wallet-button-secondary,
    433 #body_content .wallet-page a.wallet-button-secondary:link,
    434 #body_content .wallet-page a.wallet-button-secondary:visited {
    435   background: #fff;
    436   color: var(--brand-blue-dark);
    437 }
    438 
    439 #body_content .wallet-page a.wallet-button-secondary:hover {
    440   background: var(--brand-blue-light);
    441   color: var(--brand-blue-dark);
    442 }
    443 
    444 #body_content .wallet-page a.wallet-button:focus-visible,
    445 .wallet-action-direct:focus-visible {
    446   outline: 3px solid var(--focus-ring);
    447   outline-offset: 3px;
    448 }
    449 
    450 .wallet-advanced-options {
    451   border-bottom: 1px solid var(--border);
    452 }
    453 
    454 .wallet-advanced-options details {
    455   border-top: 1px solid var(--border);
    456   padding: 0;
    457 }
    458 
    459 .wallet-advanced-options summary {
    460   cursor: pointer;
    461   font-size: 1.15rem;
    462   font-weight: 650;
    463   padding: 1.15rem 0.25rem;
    464 }
    465 
    466 .wallet-advanced-options summary:focus-visible {
    467   outline: 3px solid var(--focus-ring);
    468   outline-offset: 3px;
    469 }
    470 
    471 .wallet-details-content {
    472   max-width: 800px;
    473   padding: 0 0.25rem 1.5rem 1.5rem;
    474 }
    475 
    476 .wallet-warning {
    477   background: #fff7e6;
    478   border-left: 4px solid #b96a00;
    479   padding: 0.85rem 1rem;
    480 }
    481 
    482 .wallet-action-notice,
    483 .wallet-demo {
    484   align-items: center;
    485   background: var(--brand-blue-light);
    486   border-left: 5px solid var(--brand-blue);
    487   border-radius: 0.5rem;
    488   display: flex;
    489   gap: 2rem;
    490   justify-content: space-between;
    491   margin-top: 4rem;
    492   padding: 1.75rem 2rem;
    493 }
    494 
    495 .wallet-action-notice {
    496   margin-top: 2rem;
    497 }
    498 
    499 .wallet-action-notice[hidden] {
    500   display: none;
    501 }
    502 
    503 .wallet-action-notice p,
    504 .wallet-demo p {
    505   margin-bottom: 0;
    506 }
    507 
    508 .wallet-action-notice .wallet-button,
    509 .wallet-demo .wallet-button {
    510   flex: 0 0 auto;
    511 }
    512 
    513 .wallet-action-options {
    514   display: flex;
    515   flex: 0 0 auto;
    516   flex-direction: column;
    517   gap: 0.25rem;
    518   max-width: 100%;
    519   text-align: center;
    520 }
    521 
    522 .wallet-action-direct {
    523   font-size: 0.9rem;
    524   min-height: 44px;
    525   padding: 0.5rem;
    526 }
    527 
    528 .wallet-resources {
    529   margin: 3.5rem 0 1rem;
    530 }
    531 
    532 .wallet-resources ul {
    533   display: flex;
    534   flex-wrap: wrap;
    535   gap: 0.75rem 1.75rem;
    536   list-style: none;
    537   margin: 1rem 0 0;
    538   padding: 0;
    539 }
    540 
    541 .wallet-resources a {
    542   font-weight: 550;
    543 }
    544 
    545 @media (max-width: 767.98px) {
    546   .wallet-hero {
    547     padding: 2.5rem 0.5rem 2.25rem;
    548   }
    549 
    550   .wallet-highlights {
    551     align-items: center;
    552     flex-direction: column;
    553     gap: 0.5rem;
    554   }
    555 
    556   .wallet-section {
    557     margin-top: 2.75rem;
    558   }
    559 
    560   .wallet-grid {
    561     grid-template-columns: 1fr;
    562   }
    563 
    564   .wallet-card {
    565     min-height: auto;
    566   }
    567 
    568   .wallet-actions {
    569     align-items: stretch;
    570     flex-direction: column;
    571   }
    572 
    573   .wallet-action-notice,
    574   .wallet-demo {
    575     align-items: flex-start;
    576     flex-direction: column;
    577     gap: 1rem;
    578     margin-top: 3rem;
    579     padding: 1.5rem;
    580   }
    581 
    582   .wallet-action-notice {
    583     margin-top: 2rem;
    584   }
    585 
    586   .wallet-action-options,
    587   .wallet-demo .wallet-button {
    588     width: 100%;
    589   }
    590 }