afpy.org/sass/style.sass

170 lines
2.7 KiB
Sass
Raw Normal View History

2017-09-21 17:24:01 +00:00
@import url('https://fonts.googleapis.com/css?family=Hind:300,400,600,700')
$bkg: #25252D
$header: #1d1e23
$action: #2e5cfd
$action-secondary: #ffcd05
$text: #eaeaea
2017-09-21 15:50:24 +00:00
2017-09-22 12:48:11 +00:00
a
color: $action-secondary
font-size: .8em
font-weight: 700
text-decoration: none
text-transform: uppercase
transition: color 250ms
&:hover
color: lighten($action-secondary, 10%)
input[type="submit"]
background: $action
border: 0
color: #fff
cursor: pointer
font-family: 'Hind', sans-serif
outline: transparent
padding: 1em 2em
text-transform: uppercase
transition: background 250ms
&:hover
background: lighten($action, 5%)
2017-09-22 13:15:24 +00:00
code
background: $header
border-bottom: 1px solid $action-secondary
display: block
padding: 2em
2017-09-21 14:34:26 +00:00
body
2017-09-21 17:24:01 +00:00
background: $bkg
color: $text
2017-09-22 12:00:51 +00:00
display: flex
2017-09-22 12:58:01 +00:00
flex-direction: column
2017-09-21 17:24:01 +00:00
font-family: 'Hind', sans-serif
2017-09-22 10:08:46 +00:00
font-size: .9em
font-weight: 300
2017-09-21 15:50:24 +00:00
margin: 0
2017-09-22 12:58:01 +00:00
min-height: 100vh
2017-09-21 15:50:24 +00:00
padding: 0
2017-09-22 12:00:51 +00:00
header
background: $header
order: 1
2017-09-21 15:50:24 +00:00
nav
2017-09-22 12:00:51 +00:00
order: 0
2017-09-21 17:14:00 +00:00
ul
display: flex
2017-09-21 17:24:01 +00:00
justify-content: center
2017-09-21 17:14:00 +00:00
list-style: none
margin: 0
padding-left: 0
2017-09-22 10:08:46 +00:00
a
color: $text
display: block
font-weight: 600
padding: 1em
text-decoration: none
2017-09-21 17:24:01 +00:00
2017-09-22 10:08:46 +00:00
main
2017-09-22 12:58:01 +00:00
flex-grow: 1
2017-09-22 10:08:46 +00:00
margin: 0 auto
max-width: 1200px
2017-09-22 12:00:51 +00:00
order: 3
2017-09-22 12:48:11 +00:00
width: 100%
2017-09-22 12:00:51 +00:00
2017-09-22 12:58:01 +00:00
footer
background: $header
margin-top: 2em
order: 4
ul
display: flex
justify-content: center
list-style: none
padding: 0
a
color: inherit
text-decoration: inherit
padding: 1em
2017-09-22 12:00:51 +00:00
h1
color: $action-secondary
font-weight: 300
margin: 2em auto
max-width: 1200px
&::after
background: $action-secondary
content: ''
display: block
height: 3px
width: 30px
abbr
display: block
2017-09-22 10:08:46 +00:00
h2
font-weight: 400
2017-09-22 13:02:15 +00:00
dl
2017-09-22 10:08:46 +00:00
display: flex
flex-wrap: wrap
dt
box-sizing: border-box
display: flex
flex-direction: column
line-height: 50px
text-align: center
padding: 1em
width: 300px
dd
box-sizing: border-box
margin-left: -300px
padding: 3em 0 0
text-align: center
width: 300px
2017-09-22 12:24:51 +00:00
2017-09-22 12:58:01 +00:00
#planet main, #emplois main, #index-news
box-sizing: border-box
display: flex
flex-wrap: wrap
article
background: lighten($bkg, 5%)
border: 1px solid $bkg
2017-09-22 12:24:51 +00:00
box-sizing: border-box
2017-09-22 12:58:01 +00:00
flex: 1 50%
padding: 2em
a
color: $action-secondary
font-size: .8em
font-weight: 700
text-decoration: none
text-transform: uppercase
transition: color 250ms
&:hover
color: lighten($action-secondary, 10%)
2017-09-22 12:24:51 +00:00
h2
flex: 1 100%
article
background: lighten($bkg, 5%)
border: 1px solid $bkg
box-sizing: border-box
flex: 1 50%
padding: 2em
h2
font-size: 1.2em
font-weight: 600