Navigation for mobile.
This commit is contained in:
@@ -11,6 +11,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -25,6 +29,56 @@ header {
|
|||||||
background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), #d5caf2);
|
background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), #d5caf2);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
a {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mobile-main-nav-bar {
|
||||||
|
visibility: hidden;
|
||||||
|
height: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
&.mobile-main-nav-bar {
|
||||||
|
height: auto;
|
||||||
|
display: flex;
|
||||||
|
visibility: visible;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #d5caf2;
|
||||||
|
width: 80%;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.main-nav-bar {
|
||||||
|
visibility: hidden;
|
||||||
|
height: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-main-title {
|
||||||
|
visibility: hidden;
|
||||||
|
height: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.mobile-main-title {
|
||||||
|
visibility: visible !important;
|
||||||
|
height: 100% !important;
|
||||||
|
margin-top: 30px !important;
|
||||||
|
margin-bottom: 30px !important;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,3 +28,11 @@ section.text {
|
|||||||
padding: 0px 20px;
|
padding: 0px 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
#main-title {
|
||||||
|
visibility: hidden;
|
||||||
|
height: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,6 +22,22 @@
|
|||||||
<%= link "Covid-19", to: Routes.page_path(@conn, :covid19) %>
|
<%= link "Covid-19", to: Routes.page_path(@conn, :covid19) %>
|
||||||
<%= link "Ilmoittautuminen", to: Routes.admin_performer_path(@conn, :new) %>
|
<%= link "Ilmoittautuminen", to: Routes.admin_performer_path(@conn, :new) %>
|
||||||
</nav>
|
</nav>
|
||||||
|
<h1 class="mobile-main-title">
|
||||||
|
<a href="/#logo-container">Runosaari 2021</a>
|
||||||
|
</h1>
|
||||||
|
<nav class="mobile-main-nav-bar" id="nav-bar">
|
||||||
|
<a href="/#logo-container">Etusivu</a>
|
||||||
|
<a href="calendar.html#calendar-container"
|
||||||
|
>Ohjelma</a
|
||||||
|
>
|
||||||
|
<a href="performers.html#performers-container"
|
||||||
|
>Esiintyjät</a
|
||||||
|
>
|
||||||
|
<a href="contact.html#contact-container">Info</a>
|
||||||
|
<a href="covid19.html#covid-container"
|
||||||
|
>Covid-19</a
|
||||||
|
>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<main role="main">
|
<main role="main">
|
||||||
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
|
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user