Commit ec327c4f authored by sarah's avatar sarah

mobile version almost finished but there is something weird with some heights

parent 4a8d6d3e
......@@ -11,3 +11,41 @@
#detail-container .event-detail-footer{
border-top: 2px solid var(--bleu-bille);
}
@media only screen and (max-width: 767px) {
#detail-container {
display: block;
}
}
@media only screen and (max-width: 767px) {
.right {
display: block;
top: 78px;
}
}
@media only screen and (max-width: 767px) {
.left {
height: auto;
}
}
@media only screen and (max-width: 767px) {
.agenda {
display: none;
}
}
@media only screen and (max-width: 767px) {
#prolog {
display: none;
}
}
@media only screen and (max-width: 767px) {
.about {
display: none;
}
}
@media only screen and (max-width: 767px) {
blockquote {
margin-right: 0pt;
}
}
......@@ -67,6 +67,21 @@
color: rgb(0, 71, 171);
}
/* ==========================================================================
Custom medias definitions
========================================================================== */
@custom-media --mobile only screen and (max-width: 767px);
@custom-media --mobile-landscape only screen and (max-width: 767px) and (orientation: landscape);
/* ==========================================================================
Variables
========================================================================== */
:root {
--bleu-bille: #112B92;
--vert-karel: #00B788;
......@@ -84,6 +99,11 @@ body {
line-height: 1.2em;
height: 100%;
}
@media only screen and (max-width: 767px) {
body {
font-size: 1.1em;
}
}
p {
margin: 0;
}
......@@ -180,6 +200,13 @@ nav {
padding-bottom: 10px;
}
@media only screen and (max-width: 767px) {
nav {
position: fixed;
width: 95%;
background: white;
}
}
nav ul {
display: flex;
flex-direction: column;
......@@ -190,7 +217,11 @@ nav ul {
position: relative;
margin-top: 40px;
}
@media only screen and (max-width: 767px) {
nav ul {
margin-top: 15px;
}
}
nav ul li {
flex: 0 0 auto;
padding-right: 5px;
......@@ -225,7 +256,11 @@ p.logo {
margin-bottom: 10px;
float: left;
}
@media only screen and (max-width: 767px) {
p.logo {
width: 51px;;
}
}
#container {
margin: 0px 20px;
border-left: 2px solid;
......@@ -235,11 +270,30 @@ p.logo {
display: flex;
flex-direction: column;
}
@media only screen and (max-width: 767px) {
#container {
margin: 0px 5px;
border: 0px solid;
display: block;
width: 97%;
}
}
main {
display: flex;
flex-direction: row;
flex: 1 0 0;
overflow: hidden;
display: block;
}
@media only screen and (max-width: 767px) {
main {
flex-direction: column;
flex: 2 0 0;
border-left: 2px solid black;
border-right: 2px solid black;
}
}
.left {
display: flex;
......@@ -247,12 +301,35 @@ main {
/* height: 100%; */
border-right: 2px solid;
flex: 1 0 0;
}
@media only screen and (max-width: 767px) {
.left {
z-index: 100;
/* width: 95%; */
border-right: 0px solid;
border-bottom: 2px solid black;
height: 55%;
/* position: fixed; */
background: white;
flex-direction: row;
}
}
.right {
display: flex;
flex-direction: row;
flex: 2 0 0;
}
@media only screen and (max-width: 767px) {
.right {
overflow: auto;
position: sticky;
top: 160px;
z-index: 0;
width: 100%;
}
}
.tags {
color:var(--bleu-bille);
font-size: 0.7em;
......@@ -293,10 +370,25 @@ main {
background-position: right;
background-size: cover;
}
@media only screen and (max-width: 767px) {
#prolog {
border-right: 2px solid black;
flex: 60px 0 0;
margin-top: 79px;
position: sticky;
}
}
.about {
border-top: 2px solid;
flex: 1 0 0;
}
@media only screen and (max-width: 767px) {
.about {
margin-top: 77px;
font-size: 0.8em;
}
}
.intro {
font-family: "Junicode-Condensed";
font-size: 1.7em;
......@@ -328,6 +420,12 @@ main {
z-index: 100;
flex: 0 0 0;
}
@media only screen and (max-width: 767px) {
.partners {
border: 2px solid;
border-top: 0px solid;
}
}
.partners img.logo-partners {
height: 38px;
margin-top: 11px;
......@@ -407,7 +505,11 @@ blockquote + p, .event-infos + blockquote {
.event-exerpt {
font-weight: normal;
}
@media only screen and (max-width: 767px) {
.event-exerpt {
display: none;
}
}
/* event activated */
/* .agenda .event.active a, */
.agenda .event.active {
......@@ -467,9 +569,11 @@ blockquote + p, .event-infos + blockquote {
background-color: var(--bleu-bille);
color: white;
}
/* #detail-container.active {
flex: 2 0 0;
} */
@media only screen and (max-width: 767px) {
#detail-container {
display: none;
}
}
#detail-container .event.active .event-detail,
#detail-container .event-infos {
display: block;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment