kpsul/gestioncof/cms/static/cofcms/sass/screen.scss

282 lines
6.6 KiB
SCSS
Raw Normal View History

/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
@import url('https://fonts.googleapis.com/css?family=Carter+One|Source+Sans+Pro:300,300i,700');
@import "compass/reset";
@import "_colors";
*, *:after, *:before {
box-sizing: border-box;
}
body {
background: $fond;
font: 17px "Source Sans Pro", "sans-serif";
}
header {
background: $bandeau;
}
h1, h2 {
font-family: "Carter One";
}
h1 {
font-size: 2.3em;
}
h2 {
font-size: 1.6em;
}
a {
color: $lien;
text-decoration: none;
2017-08-26 18:05:20 +02:00
font-weight: bold;
}
h2 a {
font-weight: inherit;
color: inherit;
}
header {
section {
display: flex;
width: 100%;
justify-content: space-between;
align-items: stretch;
&.bottom-menu {
justify-content: space-around;
text-align: center;
background: $sousbandeau;
}
}
h1 {
padding: 0 15px;
}
nav {
ul {
display: flex;
li {
display: inline-block;
& > * {
display: block;
padding: 10px 15px;
font-weight: bold;
&:hover {
background: darken($bandeau, 10%);
}
}
}
}
}
}
2017-08-26 18:05:20 +02:00
article {
line-height: 1.4;
p, ul {
margin: 0.4em 0;
}
ul {
padding-left: 20px;
li {
list-style: outside;
}
}
}
.container {
max-width: 1000px;
margin: 0 auto;
position: relative;
.aside-wrap {
position: absolute;
top: 30px;
height: 100%;
width: 250px;
.aside {
2017-08-26 18:05:20 +02:00
color: #fff;
position: fixed;
position: sticky;
top: 5px;
width: 100%;
background: $aside;
padding: 15px;
box-shadow: -4px 4px 1px rgba(#000, 0.3);
.calendar {
margin: 0 auto;
display: block;
}
}
}
.content {
max-width: 700px;
margin-left: auto;
margin-right: 0;
2017-08-26 18:05:20 +02:00
.intro {
border-bottom: 3px solid darken($fond, 50%);
margin: 20px -10px;
margin-top: 5px;
padding: 15px 5px;
}
section {
article {
background: #fff;
padding: 30px;
box-shadow: -4px 4px 1px rgba(#000, 0.3);
a {
color: $bandeau;
}
}
article + h2 {
margin-top: 15px;
}
2017-08-26 18:05:20 +02:00
article + article {
margin-top: 25px;
}
&.directory {
article.entry {
width: 80%;
max-width: 600px;
max-height: 100%;
position: relative;
padding-right: 120px;
.entry-image {
display: block;
position: absolute;
width: 150px;
background: #fff;
box-shadow: -4px 4px 1px rgba(#000, 0.2);
padding: 1px;
overflow: hidden;
right: 100px;
transform: translateX(90%);
top: -15px;
img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
}
}
}
&.actuhome {
2017-08-26 18:05:20 +02:00
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
article + article {
margin: 0;
}
article.actu {
background: none;
box-shadow: none;
max-width: 400px;
2017-08-26 18:05:20 +02:00
min-width: 300px;
flex: 1;
.actu-header {
position: relative;
box-shadow: -4px 5px 1px rgba(#000, 0.3);
padding: 0;
margin: 0;
overflow: hidden;
2017-08-26 18:05:20 +02:00
background-size: cover;
background-position: center center;
h2 {
width: 100%;
height: 100%;
2017-08-26 18:05:20 +02:00
padding: 5px;
padding-top: 150px;
2017-08-26 18:05:20 +02:00
text-shadow: 0 0 5px rgba(#000, 0.8);
a {
color: #fff;
}
}
}
.actu-misc {
2017-08-26 18:05:20 +02:00
background: lighten($fond, 15%);
box-shadow: -4px 5px 1px rgba(#000, 0.3);
margin: 0 10px;
padding: 15px;
padding-top: 5px;
.actu-minical {
display: block;
}
.actu-dates {
display: block;
text-align: right;
font-size: 0.9em;
}
}
}
}
}
}
}
.calendar {
td, th {
text-align: center;
vertical-align: center;
border: 2px solid transparent;
padding: 1px;
}
th {
font-weight: bold;
}
td {
2017-08-26 18:05:20 +02:00
font-size: 0.8em;
width: 25px;
height: 30px;
&.out {
opacity: 0.3;
}
&.today {
border-bottom-color: #000;
}
2017-08-26 18:05:20 +02:00
&:nth-child(7) {
background: rgba(#000, 0.3);
}
&:nth-child(6) {
background: rgba(#000, 0.2);
}
&.hasevent {
font-weight: bold;
color: $lien;
font-size: 1em;
}
}
}