experiENS/avisstage/sass/screen.scss

670 lines
12 KiB
SCSS
Raw Normal View History

2017-04-05 00:23:35 +02:00
@import "compass/reset";
@import url('https://fonts.googleapis.com/css?family=Dosis:300,500,700|Podkova:700');
2017-04-20 02:59:44 +02:00
$fond: #8fcc33;
$barre: darken($fond, 10%);
$compl: #f99b20;
2017-04-20 23:04:07 +02:00
$jaune: #fff60a;
$vert: #1a82dd;//09f7b0;
2017-04-20 02:59:44 +02:00
$rouge: #f70978;
2017-04-05 00:23:35 +02:00
2017-04-15 20:03:08 +02:00
$textfont: 'Dosis', sans-serif;
$headfont: Podkova, serif;
2017-04-05 00:23:35 +02:00
body {
background: $fond;
2017-04-15 20:03:08 +02:00
font-family: $textfont;
2017-04-05 00:23:35 +02:00
line-height: 1.4;
font-size: 19px;
font-weight: 300;
}
h1, h2, h3, h4 {
2017-04-15 20:03:08 +02:00
font-family: $headfont;
2017-04-05 00:23:35 +02:00
}
h1 {
font-size: 2.3em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.4em;
}
2017-04-15 20:03:08 +02:00
b, strong, em {
font-weight: bold;
2017-04-05 00:23:35 +02:00
}
.beta {
opacity: 0.5;
font-size: 0.7em;
display: inline-block;
transform: translate(-1em, 0.6em) rotate(-15deg);
}
a {
font-weight: bold;
color: $compl * 0.9;
text-decoration: none;
2017-04-05 00:23:35 +02:00
}
header {
background: $barre;
display: flex;
justify-content: space-between;
align-items: center;
nav ul {
display: inline-flex;
li {
display: inline-table;
a {
text-align: center;
display: table-cell;
padding: 0 20px;
height: 90px;
vertical-align: middle;
2017-04-15 20:03:08 +02:00
color: lighten($fond, 40%);
2017-04-05 00:23:35 +02:00
&:hover {
background: $barre * 0.6;
}
}
}
}
a {
color: #fff;
text-decoration: none;
}
h1 {
padding: 15px;
word-wrap: none;
2017-04-05 00:23:35 +02:00
}
}
p {
}
.content {
background: #efefef;
max-width: 900px;
padding: 30px;
margin: 15px auto;
p {
margin: 0.5em 0;
}
}
// Index
.homeh1 {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 1.2em;
padding-bottom: 10px;
border-bottom: 3px solid #000;
margin-bottom: 15px;
& > * {
display: inline-block;
}
}
// Liste des stages
.stagelist {
li {
display: table;
width: 100%;
//border: 1px solid $fond * 1.3;
background: #fff;
margin: 12px;
& > *, &:before {
display: table-cell;
vertical-align: middle;
padding: 15px;
}
a {
width: auto;
&:hover {
background: #ccc;
}
}
&:before {
2017-04-20 02:59:44 +02:00
content: "";
text-align: right;
width: 150px;
opacity: 0.8;
2017-04-20 02:59:44 +02:00
color: #000;
}
&.stage-brouillon:before {
content: "Brouillon";
2017-04-20 02:59:44 +02:00
background: lighten($rouge, 10%);
}
&.stage-publie:before {
content: "Publié";
2017-04-20 02:59:44 +02:00
background: lighten($vert, 10%);
}
&.stage-ajout:before {
content:"+";
color: #000;
}
}
}
// Les stages
article.stage {
font-weight: normal;
h2 {
2017-04-20 02:59:44 +02:00
background: desaturate(lighten($jaune, 15%), 40%);
color: #fff;
padding: 10px 20px;
margin: -20px;
margin-bottom: 25px;
text-shadow: -3px 3px 0 rgba(#000, 0.3);
}
h3 {
border-bottom: 2px solid desaturate($compl, 40%);
margin-left: -25px;
margin-top: 30px;
padding: 5px;
padding-left: 20px;
color: #000;
text-shadow: -3px 3px 0 rgba(#000, 0.1);
//margin-right: 25px;
}
2017-04-20 01:53:29 +02:00
#stage-map {
height: 300px;
width: 100%;
}
section {
background: #eee;
padding: 14px;
max-width: 600px;
margin: 30px auto;
&:first-child {
margin-top: 0;
h3 {
margin-top: 0;
}
}
&.misc {
padding-top: 0;
ul.infos {
margin: 0 -3px;
li {
display: inline-block;
padding: 5px;
margin: 3px;
font-weight: normal;
color: #fff;
font-size: 0.9em;
border-radius: 4px;
&.thematique {
background-color: $compl;
}
&.matiere {
background-color: $fond;
}
}
}
}
.chapo, .avis-texte {
margin-bottom: 15px;
background: #fff;
padding: 20px;
}
.chapo {
font-size: 1.1em;
font-weight: 500;
font-variant: small-caps;
}
.avis-texte {
border-left: 1px solid #ccc;
padding-left: 15px;
}
.plusmoins {
max-width: 600px;
margin: 15px auto;
& > div {
display: table;
width: 100%;
&:before {
content: "&nbsp";
width: 100px;
font-size: 1.8em;
font-weight: bold;
text-align: right;
padding-right: 12px;
}
& > *, &:before {
display:table-cell;
}
& > div {
padding: 15px;
color: #fff;
h4 {
font-weight: normal;
margin-left: -5px;
font-size: 0.9em;
opacity: 0.9;
}
p {
font-weight: bold;
margin: 2px;
}
}
}
.plus {
& > div {
2017-04-20 02:59:44 +02:00
background: darken($vert, 5%);
}
&:before {
content: "Les +";
vertical-align: bottom;
2017-04-20 02:59:44 +02:00
color: darken($vert, 10%);
}
}
.moins {
& > div {
2017-04-20 02:59:44 +02:00
background: darken($rouge, 5%);
}
&:before {
content: "Les -";
vertical-align: top;
2017-04-20 02:59:44 +02:00
color: darken($rouge, 10%);
}
}
}
}
}
2017-04-20 01:53:29 +02:00
.edit-box {
background: #eee;
margin: 10px;
padding: 10px 20px;
text-align: center;
&.public {
background: lighten($vert, 40%);
border: 1px solid $vert * 0.7;
}
&.prive {
background: lighten($rouge, 40%);
border: 1px solid $rouge * 0.7;
}
}
.article-wrapper {
display: table;
.toc-wrapper, article {
display: table-cell;
vertical-align: top;
}
.toc-wrapper {
max-width: 250px;
width: 25%;
}
.toc {
position: -webkit-sticky;
position: sticky;
top: 0;
a {
color: inherit;
font-weight: normal;
}
.toc-h1 {
}
.toc-h3 a {
font-weight: 300;
}
.toc-active a {
color: $fond;
}
}
2017-04-15 20:03:08 +02:00
}
// Formulaires
input, textarea, select, div.tinymce {
background: #fff;
font-size: 1em;
font-family: $textfont;
line-height: 1.3em;
font-weight: 500;
padding: 5px;
}
2017-04-20 02:59:44 +02:00
input[type='text'], input[type='password'], input[type='email'], textarea, select {
2017-04-15 20:03:08 +02:00
border:none;
border-bottom: 1px solid $fond;
width: 100%;
2017-04-20 02:59:44 +02:00
max-width: 100%;
2017-04-15 20:03:08 +02:00
transition: border 1s ease-out, background 1s ease-out;
&:focus {
background-color: lighten($fond, 50%);
}
}
2017-04-25 22:02:23 +02:00
input[type="submit"],
.btn {
2017-04-20 01:53:29 +02:00
background-color: $fond;
color: #fff;
border: 1px solid $fond * 0.7;
border-radius: 5px;
padding: 8px 12px;
display: block;
margin-left: auto;
margin-right: 0;
}
2017-04-25 22:02:23 +02:00
p input[type="submit"],
p .btn {
2017-04-20 01:53:29 +02:00
display:inline-block;
}
2017-04-15 20:03:08 +02:00
select {
-moz-appearance: none;
appearance: none;
width: auto;
margin-right: 5px;
2017-04-16 00:03:04 +02:00
cursor: pointer;
2017-04-15 20:03:08 +02:00
}
textarea, div.tinymce {
border:none;
border-left: 1px solid $fond;
height: auto;
min-height: 200px;
transition: border 1s ease-out, background 1s ease-out;
}
div.tinymce.mce-edit-focus {
background-color: lighten($fond, 50%);
outline: none;
}
textarea {
height: 200px;
resize: vertical;
}
form {
.field {
margin: 5px 0;
display: flex;
background: #fff;
padding: 10px;
label, .label {
display:inline-block;
width: 250px;
text-align: right;
margin-right: 12px;
padding-top: 5px;
flex-shrink: 0;
}
label {
font-family: $headfont;
font-weight: bold;
}
.help_text {
font-style: italic;
font-size: 0.9em;
}
.input {
display:inline-block;
flex-grow:1;
margin-right:10px;
}
}
}
// taggit autosuggest
ul.as-selections {
display: flex;
flex-wrap: wrap;
li {
display:inline-block;
}
.as-selection-item {
padding: 0 5px;
background: $compl;
color: #fff;
margin: 5px;
border-radius: 2px;
font-weight: 500;
a.as-close {
color: #fff;
-webkit-cursor: pointer;
cursor: pointer;
margin-right: 5px;
}
&.selected {
background: $fond;
}
}
.as-original {
flex-grow: 1;
min-width: 200px;
input {
width: 100%;
}
}
}
div.as-results {
position: relative;
ul {
position: absolute;
width: 100%;
background: #fff;
border: 1px solid lighten($fond, 30%);
2017-04-15 20:03:08 +02:00
li {
padding: 3px 5px;
}
li.as-result-item {
&.active {
background: lighten($compl, 50%);
}
}
li.as-message {
font-style: italic;
}
}
}
2017-04-16 00:03:04 +02:00
//
#map_addlieu {
height: 500px;
}
.window {
display:none;
position:fixed;
width: 100%;
height: 100%;
overflow: hidden;
top: 0;
left: 0;
z-index: 10;
&.visible {
display:block;
}
.window-bg {
background: #000;
opacity: 0.7;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
.window-content {
position: relative;
margin: 0 auto;
padding: 20px;
margin-top: 50vh;
transform: translateY(-50%);
z-index: 1;
background: #eee;
max-width: 600px;
width: 90%;
max-height: 100%;
overflow: auto;
}
2017-04-20 01:53:29 +02:00
.window-closer {
position: absolute;
top: 0;
right: 0;
padding: 12px;
z-index: 3;
&:after {
content: "×";
}
}
}
.lieu-ui {
.map {
height: 400px;
width: 100%;
}
2017-04-19 01:56:15 +02:00
.hidden {
display: none;
}
2017-04-20 23:04:07 +02:00
.masked {
visibility: hidden;
}
2017-04-19 01:56:15 +02:00
}
#avis_lieu_vide {
display:none;
}
2017-04-20 01:53:29 +02:00
a.lieu-change {
color:#fff;
background: $compl;
overflow: hidden;
display: inline-block;
max-width: 250px;
text-overflow: ellipsis;
white-space: nowrap;
padding: 5px;
border-radius: 5px;
margin-right: 7px;
&.ajout:before {
content: "+";
margin-right: 5px;
}
}
2017-04-20 02:59:44 +02:00
#stages-map {
width:100%;
height: 600px;
}
2017-04-20 23:04:07 +02:00
#feedback-button {
position:fixed;
left:0;
top:30%;
color:#fff;
z-index:4;
background: #000;
padding: 14px;
transform: rotateZ(90deg);
transform-origin: bottom left;
}
2017-04-25 22:02:23 +02:00
.betacadre {
background: lighten($rouge, 20%);
padding: 10px;
}
.entrer {
background: #fff;
max-width: 500px;
padding: 15px;
text-align: center;
margin: 15px auto;
}
article.promo {
display:block;
font-size: 1.1em;
.explications {
display:table;
& > div {
display:table-cell;
vertical-align: middle;
text-align: center;
p {
margin: 15px 15px;
}
}
}
}
2017-04-25 23:30:20 +02:00
#id_stage-thematiques {
display: none;
}