diff --git a/css/obsht.css b/css/obsht.css index 33619ee..0e3742c 100644 --- a/css/obsht.css +++ b/css/obsht.css @@ -122,7 +122,8 @@ a { color: #6fcc5a; } .glav { text-align: center; - font-size: 1.5em; + /* Min of 2.default and 7% of screen, so it's not too big on phones */ + font-size: min(2.5em, 7vw); font-family: glav, mod, sans-serif; } @@ -147,6 +148,7 @@ a { color: #6fcc5a; } img { max-width: 100%; + /* Preserve aspect ration on size changes*/ height: auto; } diff --git a/css/vid.css b/css/vid.css index 0e427f9..5814dd4 100644 --- a/css/vid.css +++ b/css/vid.css @@ -11,5 +11,7 @@ img { } .glav { - font-size: 3em; + font-size: min(6em, 10vw); + margin-top: 0; + margin-bottom: 0; } diff --git a/i/1tsarstvo/index.html b/i/1tsarstvo/index.html index 2c3210a..e940707 100644 --- a/i/1tsarstvo/index.html +++ b/i/1tsarstvo/index.html @@ -18,7 +18,7 @@
