pre-saint-gervais: update with new homepage elements (#34146)

This commit is contained in:
Frédéric Péters 2019-10-23 14:35:30 +02:00
parent 97c87e9f15
commit 7ab028af61
4 changed files with 181 additions and 3 deletions

View File

@ -84,8 +84,131 @@ header {
z-index: 1000;
width: 100%;
@media screen and (max-width: $nav-mobile-limit) {
left: 60px; // for burger menu
width: calc(100% - 60px);
left: 0px; // no burger menu
width: 100%;
background: white;
}
}
div#site-title {
clear: both;
padding-top: 58px;
padding-bottom: 20px;
position: fixed;
width: 100%;
background: white;
z-index: 200;
h1 {
max-width: $width;
box-sizing: border-box;
margin: 0 auto;
text-align: left;
padding-left: 150px;
@media screen and (max-width: $nav-mobile-limit) {
padding-left: 0;
text-align: center;
}
}
@media screen and (max-width: $nav-mobile-limit) {
position: static;
padding-bottom: 10px;
}
}
div#search-top-wrapper {
margin-top: 130px;
@media screen and (max-width: $nav-mobile-limit) {
margin-top: 0;
}
}
div#search-top-wrapper,
div#shortcuts-top-wrapper {
clear: both;
margin-bottom: 2rem;
div.search-top,
div.shortcuts-top {
max-width: $width;
box-sizing: border-box;
margin: 0 auto;
@media screen and (max-width: $nav-mobile-limit) {
padding: 1rem;
}
}
}
div#search-top-wrapper {
h2 {
color: black;
}
form {
padding: 0;
margin: 0;
display: flex;
input {
flex: 1;
margin-right: 1rem;
}
button {
@extend %button;
background: white;
color: $pink;
flex: 0;
}
}
}
div#page div#shortcuts-top-wrapper {
background: $turquoise;
padding-top: 2rem;
padding-bottom: 2rem;
@media screen and (max-width: $nav-mobile-limit) {
text-align: center;
}
h2 {
@extend %bigtitle;
background: transparent;
color: white;
&::before {
background: white;
}
}
p {
color: #6f7a83;
margin-left: 0;
margin-bottom: 1rem;
padding-left: 0;
}
a.shortcut-link {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
height: 194px;
width: 194px;
border-radius: 100%;
border: 2px solid white;
transition: all 0.1s;
text-align: center;
font-weight: bold;
color: white;
@media screen and (max-width: $nav-mobile-limit) {
margin: 0 auto 1rem auto;
}
div {
padding: 1rem;
}
&:hover {
border-color: $pink;
text-decoration: none;
background: $pink;
box-shadow: 0 11px 25px -1px rgba(206, 16, 62, 0.27);
}
}
+ main #main-content-wrapper {
margin-top: 0;
}
}
@ -132,7 +255,7 @@ div#page div#main-content-wrapper {
}
@media screen and (max-width: $nav-mobile-limit) {
h1 {
padding-left: calc(50vw - 30px - 60px);
padding-left: calc(50vw - 30px);
}
a {
width: 60px;
@ -737,3 +860,51 @@ div.textcell {
@extend %bigtitle;
}
}
#page div.wcsformsofcategorycell {
position: relative;
h2 {
@extend %bigtitle;
font-size: 2rem;
&::before {
content: none;
}
padding-left: 3rem;
@media screen and (max-width: $nav-mobile-limit) {
padding-left: 2rem;
}
}
picture {
position: absolute;
top: 0.9rem;
img {
width: 50px;
height: 50px;
}
}
ul {
li {
border-radius: 8px;
box-shadow: 0px 1px 35px -5px rgba(4, 11, 65, 0.15);
border-left: 20px solid $turquoise;
a {
border: none;
border-radius: 0 8px 8px 0;
}
div.description {
display: none;
}
margin-bottom: 1rem;
}
li.more-items {
box-shadow: none;
border: none;
a {
background: url(img/charger-plus.png) top center no-repeat;
height: 134px;
color: transparent;
}
}
}
}

View File

@ -40,3 +40,4 @@ $button-border-radius: 20px;
$title-font-family: GTWalsheimPro, sans-serif;
$cell-border: 1px solid transparent;
$cell-entry-hover-background: #ddd;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -10,3 +10,9 @@
{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block nav %}
<div id="site-title">
<h1><a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">{% firstof global_title site_title "Compte Citoyen" %}</a></h1>
</div>
{% endblock %}