@import "compass/reset"; @import "_definitions.scss"; @import url('https://fonts.googleapis.com/css?family=Dosis:300,500,700|Alegreya:700|Lato:300,300i,700'); // Général * { box-sizing: border-box; } body { background: $fond; font-family: $textfont; line-height: 1.4; font-size: $textfontsize; font-weight: 300; } h1, h2, h3, h4 { font-family: $headfont; line-height: 1.2; font-weight: bold; } h1 { font-size: 2.3em; position: relative; } h2 { font-size: 1.8em; } h3 { font-size: 1.4em; } b, strong { font-weight: bold; } em, i { font-style: italic; } a { font-weight: bold; color: $compl * 0.9; text-decoration: none; } // experiens-BETA .beta { position: absolute; opacity: 0.5; font-size: 0.7em; display: inline-block; transform: translate(-1em, 1em) rotate(-15deg); } // Feedback #feedback-button { position:fixed; left:0; top:30%; color:#fff; z-index:4; background: #000; padding: 14px; transform: rotateZ(90deg); transform-origin: bottom left; } // Cartes .leaflet-container { z-index: 1; } // Header header { background: $barre; display: flex; justify-content: space-between; align-items: center; #showmenu { display:none; } nav { display: inline; ul { display: inline-flex; li { display: inline-table; a { text-align: center; display: table-cell; padding: 0 20px; height: 90px; vertical-align: middle; color: lighten($fond, 40%); &:hover { background: $barre * 0.6; } } } } } a { color: #fff; text-decoration: none; } h1 { padding: 15px; word-wrap: none; display: inline-block; } } // General content .content { background: #efefef; width: 900px; max-width: 95vw; padding: 30px; margin: 15px auto; p { margin: 0.5em 0; } h1 { margin-bottom: 0.6em; } } // Liste des stages condensée sur le profil .condensed-stages { 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: darken($compl, 10%); color: #fff; } } &:before { content: ""; text-align: right; width: 150px; opacity: 0.8; color: #000; } &.stage-brouillon:before { content: "Brouillon"; background: lighten($rouge, 10%); } &.stage-publie:before { content: "Publié"; background: lighten($vert, 10%); } &.stage-ajout:before { content:"+"; color: #000; } } } .stage-liste { li { display: block; &.date-maj { font-weight: 300; font-size: 0.9em; padding: 3px 0; } &.stage { padding: 10px; background: #fff; margin: 10px; h3 { font-size: 1.4em; padding-left: 5px; & > a { color: darken($vert, 20); } .auteur { font-size: 0.8em; &, a { font-family: $textfont; font-weight: normal; } } } ul.infos { display:inline; } } .misc-hdr { margin-bottom: 10px; .dates { & > span { display: table-cell; vertical-align: middle; } .year { padding-left: 8px; } } } } } ul.infos { margin: 0 -3px; padding: 0; li { display: inline-block; padding: 5px; margin: 3px; font-weight: bold; font-size: 0.9em; border-radius: 4px; &.thematique { color: darken($vert, 20); background-color: lighten($vert, 20); } &.matiere { color: darken($fond, 20); background-color: lighten($fond, 20); } &.lieu { color: darken($rouge, 20); background-color: lighten($rouge, 20); } } } // // // Détail d'un stage article.stage .avis, div.tinymce { ul, ol { list-style: unset; padding-left: 20px; } } article.stage { font-weight: normal; font-family: $paragraphfont; h2 { background: desaturate(lighten($jaune, 15%), 40%); color: #000; padding: 10px 20px; margin: -20px; margin-bottom: 5px; text-shadow: -3px 3px 0 rgba(#fff, 0.3); } h3 { //border-bottom: 2px solid desaturate($compl, 40%); margin-top: 30px; padding: 5px; padding-left: 0px; color: darken($vert, 20); text-shadow: -3px 3px 0 rgba($vert, 0.1); //margin-right: 25px; } section { &.avis section { max-width: 700px; background: #fff; padding: 14px; margin: 30px auto; } &:first-child { margin-top: 0; h3 { margin-top: 0; } } #stage-map { height: 300px; width: 100%; } &.misc { padding-top: 0; margin-bottom: 30px; .misc-content { &.withmap { display:table; width: 100%; & > div { display:table-cell; vertical-align: top; } .map { min-width: 250px; width: 30%; min-height: 300px; } .desc { padding: 5px; padding-left: 15px; } } } } .chapo, .avis-texte { margin-bottom: 15px; background: #fff; padding: 0 20px; } .avis-texte { font-size: $textfontsize - 1px; } .chapo { font-size: 1.1em; font-family: $textfont; font-weight: 500; padding-left: 0px; } .avis-texte { //border-left: 1px solid #ccc; padding-left: 15px; } .plusmoins { max-width: 600px; margin: 15px auto; margin-top: 40px; & > div { display: table; width: 100%; &:before { content: " "; width: 90px; 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 { background: darken($vert, 5%); } &:before { content: "Les +"; vertical-align: bottom; color: darken($vert, 10%); } } .moins { & > div { background: darken($rouge, 5%); } &:before { content: "Les –"; vertical-align: top; color: darken($rouge, 10%); } } } } // Sommaire sur le côté .section-wrapper { display: table; margin-left: -15px; width: 100%; .toc-wrapper, & > section { display: table-cell; vertical-align: top; } .toc-wrapper { max-width: 230px; width: 25%; padding: 5px; padding-right: 25px; } .toc { font-family: $textfont; position: -webkit-sticky; position: sticky; top: 12px; margin-left: -40px; background: #fff; padding: 5px; box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); ul { list-style: none; padding: 0; } a { display: block; color: inherit; font-weight: normal; border-radius: 7px; padding: 5px; line-height: 1; &:hover { color: $fond; } } .toc-h1 a { font-weight: 900; } .toc-h2 { margin-top: 10px; font-weight: 400; } .toc-h3 a { font-weight: 300; } .toc-active a { color: darken($vert, 20); } } } } .misc-hdr { display:table; width: 100%; border-bottom: 1px solid #ccc; & > * { display: table-cell; vertical-align: bottom; } h1 { width: 100%; } .dates { width: 50px; background-color: darken($rouge, 20); color: #fff; padding: 3px 10px; border-radius: 5px 5px 0 0; font-family: $textfont; font-size: 0.8em; text-align: center; span { display:block; } .year { font-size: 1.8em; } } } // Bandeau pour passer en public ou éditer .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; } } // // // Formulaires // Général input, textarea, select, div.tinymce, option, optgroup:before { background: #fff; font-size: 1em; font-family: $textfont; line-height: 1.3em; font-weight: 500; padding: 5px; text-align: left; &:focus, &.mce-edit-focus { background-color: lighten($fond, 40%); outline: none; } } input[type='text'], input[type='password'], input[type='email'], textarea, select { border:none; border-bottom: 1px solid $fond; width: 100%; max-width: 100%; transition: border 1s ease-out, background 1s ease-out; } select { -moz-appearance: none; appearance: none; width: auto; margin-right: 5px; cursor: pointer; option { padding: 3px; white-space: pre-wrap; } optgroup { option { padding-left: 10px; } &:before { font-weight:bold; } } } input[type="submit"], .btn { font: $textfontsize $textfont; background-color: $fond; color: #fff; border: 1px solid $fond * 0.7; border-radius: 5px; padding: 8px 12px; display: inline-block; } p.submits { text-align: right; } form .commentaire { font-style: italic; } .edit-btn { border-color:darken($jaune, 30%); color: #000; background: url($staticurl + "images/edit.svg") no-repeat right center; background-color:lighten($jaune, 10%); background-origin: content-box; background-size: contain; &:after { content: ""; width: 30px; display: inline-block; } } textarea, div.tinymce { font-family: $paragraphfont; border:none; border-left: 1px solid $fond; height: auto; min-height: 200px; transition: border 1s ease-out, background 1s ease-out; } textarea { height: 200px; resize: vertical; } // Formulaire et labels 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; &.required:before { margin-right: 5px; content:"*"; color: $rouge; } } 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%); li { padding: 3px 5px; } li.as-result-item { &.active { background: lighten($compl, 30%); } } li.as-message { font-style: italic; } } } // // // Fenêtre .window { display:none; position:fixed; width: 100%; height: 100%; overflow: hidden; top: 0; left: 0; z-index: 50; &.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; form { label, .label { width: 150px; } } } .window-closer { position: absolute; top: 0; right: 0; padding: 12px; z-index: 3; &:after { content: "×"; } } } // // // Widget choix et ajout de lieux #lieu_widget { .lieu-ui { position: relative; .map { height: 400px; width: 100%; } &.hidden { display: none; } .masked { visibility: hidden; } } .lieu-choixmodif { display: none; } &.modif { .lieu-choixmodif { display: unset; } } &.modif, &.attente { .lieu-ui { display: none; } } &.edit { .lieu-ui { .lieu-acinput { display:none; } .map { height: 200px; } } } #avis_lieu_vide { display:none; } .message { background: lighten($compl, 30); padding: 5px; font-style: italic; font-size: 0.9em; &.hidden { display: none; } } } 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; } } #stages-map { width:100%; height: 600px; max-height: 90vh; } #id_stage-thematiques { display: none; } // 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; } p { text-align: right; } } .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; &:first-child { direction: rtl; & > * { direction: ltr; } } & > div { display:table-cell; vertical-align: middle; text-align: center; p { margin: 15px 15px; } } } } // FAQ .faq-toc { font-family: $paragraphfont; display: block; max-width: 700px; margin: 0 auto; ul { margin: 20px; li { a { color: #000; display: block; padding: 5px; } &.toc-h1 { display:none; } &.toc-h2 a { background: lighten($compl, 20%); } &.toc-h3 a { padding-left: 10px; background: #fff; font-weight: normal; } a:hover { color: darken($fond, 30); background: lighten($fond, 20) !important; } } } } .faq { article { background: #fff; padding: 15px; h2 { background-color: lighten($compl, 20%); color: darken($compl, 20%); margin: -15px; padding: 15px; } h3 { color: darken($vert, 20%); background-color: lighten($vert, 30%); margin: 0 -15px; margin-top: 30px; padding: 10px 15px; &:nth-child(2) { margin-top: 0; } } ul { padding-left: 20px; li { list-style: initial; } } p, ul { font-family: $paragraphfont; font-size: $textfontsize - 1px; max-width: 700px; margin-left: auto; margin-right: 5%; } } } @import "_responsive.scss";