Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Site.js
site
Commits
451b7536
Verified
Commit
451b7536
authored
Jun 08, 2020
by
Aral Balkan
Browse files
Improve layout on narrowest viewports
parent
e3b8005e
Changes
2
Hide whitespace changes
Inline
Side-by-side
css/index.css
View file @
451b7536
...
...
@@ -13,8 +13,7 @@
* *
********************************************************************************/
:root
{
:root
{
--alert-height
:
2.75rem
;
}
...
...
@@ -26,11 +25,11 @@
* *
********************************************************************************/
html
{
box-sizing
:
border-box
;
}
*,
*
:before
,
*
:after
{
box-sizing
:
inherit
;
}
body
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
ol
,
ul
{
margin
:
0
;
padding
:
0
;
font-weight
:
normal
;
}
ol
,
ul
{
list-style
:
none
;
}
img
{
max-width
:
100%
;
height
:
auto
;
}
html
{
box-sizing
:
border-box
;
}
*,
*
:before
,
*
:after
{
box-sizing
:
inherit
;
}
body
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
ol
,
ul
{
margin
:
0
;
padding
:
0
;
font-weight
:
normal
;
}
ol
,
ul
{
list-style
:
none
;
}
img
{
max-width
:
100%
;
height
:
auto
;
}
/********************************************************************************
...
...
@@ -39,7 +38,7 @@
* *
********************************************************************************/
html
{
html
{
/* Responsiveness is mainly defined by altering the root foot size (root em). */
font-size
:
clamp
(
100%
,
2vw
,
125%
);
...
...
@@ -68,15 +67,15 @@ body {
margin-right
:
auto
;
}
aside
,
p
{
margin-bottom
:
1em
;
}
aside
,
p
{
margin-bottom
:
1em
;
}
aside
span
{
display
:
inline-block
;
}
aside
span
{
display
:
inline-block
;
}
h1
{
h1
{
font-size
:
5rem
;
text-align
:
center
;
font-weight
:
200
;
...
...
@@ -755,10 +754,25 @@ footer {
}
}
/* The tab bar split into two lines again */
/* The second-level heading in the title wraps to two lines. */
@media
(
max-width
:
367px
)
{
header
h2
{
font-size
:
1.4em
;
}
}
/* The navigation splits into two lines again. */
@media
(
max-width
:
361px
)
{
nav
,
nav
li
,
nav
a
{
font-size
:
1em
;
font-weight
:
500
;
}
}
/* The tab bar split into two lines again. */
@media
(
max-width
:
337px
)
{
#platform-tabs
li
button
{
font-size
:
1em
;
font-weight
:
500
;
}
}
\ No newline at end of file
}
index.html
View file @
451b7536
...
...
@@ -27,7 +27,13 @@
<h2>
Small Web construction set.
</h2>
<img
id=
'header-image'
src=
'/images/person.svg'
alt=
''
>
<!-- Navigation -->
<!------------------------------------------------------------------------------------>
<!-- -->
<!-- Navigation -->
<!-- -->
<!------------------------------------------------------------------------------------>
<nav>
<ul>
<li
class=
'selected'
>
Home
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment