Merge pull request 'add a basic nav on top of page' (#3) from add-nav into master
Reviewed-on: #3
This commit is contained in:
commit
490aea358b
2 changed files with 43 additions and 3 deletions
|
|
@ -24,8 +24,30 @@ h1, h2{
|
||||||
color:#ff0000;
|
color:#ff0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
header{
|
nav {
|
||||||
border-top: 20px solid #ff0000;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
list-style: none;
|
||||||
|
background: #ff0000;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
padding: inherit;
|
||||||
|
margin: inherit;
|
||||||
|
justify-content: center;
|
||||||
|
border-bottom: solid 10px #ff0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav li a {
|
||||||
|
margin: 0.2em 0.5em;
|
||||||
|
line-height: 2em;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer{
|
footer{
|
||||||
|
|
@ -61,3 +83,9 @@ hr {height: 40px; background: url('../images/separation.png') no-repeat 50% 50%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
nav ul {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
12
index.html
12
index.html
|
|
@ -9,6 +9,18 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<nav>
|
||||||
|
<details>
|
||||||
|
<summary>☰ outils</summary>
|
||||||
|
<ul class="desktop">
|
||||||
|
<li><a href="https://wiki.interhacker.space">wiki</a></li>
|
||||||
|
<li><a href="https://git.interhacker.space">forge</a></li>
|
||||||
|
<li><a href="https://element.interhacker.space">matrix</a></li>
|
||||||
|
<li><a href="https://md.interhacker.space/">pads</a></li>
|
||||||
|
<li><a href="https://tube.interhacker.space">peertube</a></li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
</nav>
|
||||||
<header>
|
<header>
|
||||||
<h1>UNE INTRODUCTION AUX HACKERSPACES ET À LEURS ACTIVITÉS</h1>
|
<h1>UNE INTRODUCTION AUX HACKERSPACES ET À LEURS ACTIVITÉS</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue