cremeaux/assets/styles/main.sass

237 lines
3.9 KiB
Sass
Raw Normal View History

2020-11-09 12:36:28 +01:00
$vert: #04874b
$orange: #f0833c
$grey: #e5e5e5
2020-11-04 23:45:35 +01:00
$color-primary: black
$color-secondary: white
$size-xs: 480px
$size-sm: 600px
$size-md: 840px
$size-lg: 960px
$size-xl: 1280px
@import "./reset"
@import "./fonts"
2020-11-05 14:14:55 +01:00
@import "./header"
@import "./footer"
@import "./posts"
@import "./print"
@import "./css-masonry"
2020-11-04 23:45:35 +01:00
body
color: $color-primary
background-color: $color-secondary
2020-11-09 12:36:28 +01:00
.open-button, .close-button
border-radius: 0
border: 1px solid white
padding: .2rem .5rem
cursor: pointer
&:hover
color: white
.md p
2020-11-09 12:36:28 +01:00
img
margin: 3rem auto
&:first-child img
margin: 0 auto 3rem
&:last-child img
margin: 3rem auto 0
&:first-child:last-child img
2020-11-09 12:36:28 +01:00
margin: 0 auto
.round
border-radius: 100%
2020-11-05 14:14:55 +01:00
// CONTAINER
2020-11-04 23:45:35 +01:00
2020-11-09 12:36:28 +01:00
.icons
width: 30px
2020-11-09 12:36:28 +01:00
2020-11-05 14:14:55 +01:00
.container
max-width: $size-lg
2020-11-05 14:14:55 +01:00
margin: 0 auto
2020-11-09 12:36:28 +01:00
padding: 0 1rem
@media screen and (max-width: $size-xs)
padding: 0 .5rem
2020-11-09 12:36:28 +01:00
// content
#content
margin-top: -10vh
min-height: 50vh
@media screen and (max-width: $size-md)
min-height: inherit
a
color: $color-primary
2020-11-09 12:36:28 +01:00
> .container
2020-11-09 12:36:28 +01:00
background-color: white
padding: 1rem
@media screen and (max-width: $size-sm)
margin: 0
2020-11-25 18:20:38 +01:00
padding: 1rem
@media screen and (max-width: $size-xs)
padding: 1rem .5rem
2020-11-09 12:36:28 +01:00
.infos
2020-11-09 12:36:28 +01:00
display: flex
@media screen and (max-width: $size-md)
flex-direction: column
.news, .opening
min-height: 500px
margin: 1rem
2020-11-09 12:36:28 +01:00
.news
width: 65%
2020-11-09 12:36:28 +01:00
display: flex
flex-direction: column
@media screen and (max-width: $size-xl)
width: 65%
@media screen and (max-width: $size-md)
width: 100%
margin: 0
2020-11-09 12:36:28 +01:00
.opening
background: $orange
width: 35%
padding: 20px
color: black
background-image: url(/icons/horloge.svg)
background-repeat: no-repeat
background-position: center -50px
background-size: 70%
@media screen and (max-width: $size-xl)
width: 35%
@media screen and (max-width: $size-md)
width: 100%
margin: 0
background-position-x: 120%
background-size: 50%
h2
margin: 1rem 0
h3
margin: 1rem 0 .4rem
text-transform: inherit
p
margin-top: 0
p:last-child
margin-bottom: 0
a
color: black
.news
aside h2
text-align: center
> small
display: block
text-align: center
2020-11-09 12:36:28 +01:00
hr
margin: 3rem auto
border: 1px dashed $vert
@media screen and (max-width: $size-xs)
margin: 2rem auto
2020-11-09 12:36:28 +01:00
// FOOTER
.explain
text-align: center
font-size: .6rem
background-color: $vert
color: white
a
color: white
2020-11-09 12:36:28 +01:00
#content .commissions
h3, h4
color: $vert
#content .conseilmunicipal
display: flex
flex-wrap: wrap
justify-content: center
.person
margin: 1rem
width: 250px
text-align: center
.card-image
margin-bottom: 1rem
h2
color: $vert
font-size: 1.1rem
padding: 0
margin: 0 0 .3rem
h3
font-size: 1rem
padding: 0
margin: 0
.card-body
font-size: .9rem
.md
max-width: 645px
margin-left: auto
margin-right: auto
.obfuscate:before
content: attr(data-param2)
unicode-bidi: bidi-override
direction: rtl
&.at
content: attr(data-param4) "\002E" attr(data-param3) "\0040" attr(data-param2)
details > summary
cursor: pointer
2021-09-09 00:10:40 +02:00
// $vert: #04874b
// $orange: #f0833c
// $grey: #e5e5e5
// $color-primary: black
// $color-secondary: white
#content .cards
margin: 0 -1rem
padding: 0
list-style-type: none
display: flex
flex-wrap: wrap
justify-content: center
.card
flex: 0 0 calc(100% * 3 / 12)
background-color: #f0833c
margin: 1rem
padding: 1rem
border-radius: 4px
text-align: center
display: flex
align-items: center
justify-content: center
color: white
h2
text-transform: none
padding: 0
margin: 0
font-size: 1.2rem
&:hover
box-shadow: none
color: $vert
background-color: white