Changeset 18 in code


Ignore:
Timestamp:
Oct 18, 2021, 3:35:50 PM (4 years ago)
Author:
dev
Message:

Change page header disposition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/static/partage.css

    r15 r18  
    1212header {
    1313        display: flex;
     14        flex-direction: column;
     15        flex-wrap: wrap-reverse;
    1416        align-items: center;
    1517        align-content: center;
    16         justify-content: center;
    17         max-height: 30vh;
    18         gap: 8px;
    1918}
    2019
    2120
    22 h1       { font-size: 3rem; }
    23 img#logo { height: 4rem; }
    24 ul       { list-style: none; padding: 0; }
     21img#logo { height: 100%; max-height: 30vh; }
     22h1 { font-size: 4.5rem; }
     23ul { list-style: none; padding: 0; }
    2524
    2625/* font attributes are not inherited by default */
     
    3130}
    3231
    33 
    34 @media (orientation: portrait) {
    35         header   { flex-direction: column; max-height: 50vh; }
    36         h1       { font-size: 3rem; }
    37         img#logo { height: 30vh; }
     32@media (min-aspect-ratio: 18/9) {
     33        header {
     34                flex-direction: row;
     35        }
     36        h1 { font-size: 3rem; margin-right: 10px; }
     37        img#logo {
     38                height: 50%;
     39                max-height: 20vh;
     40                order: 2;
     41        }
    3842}
    3943
Note: See TracChangeset for help on using the changeset viewer.