experiENS/avisstage/sass/screen.scss

894 lines
16 KiB
SCSS
Raw Normal View History

2017-04-05 00:23:35 +02:00
@import "compass/reset";
2017-04-29 03:49:39 +02:00
@import "_definitions.scss";
2017-05-16 23:37:10 +02:00
@import url('https://fonts.googleapis.com/css?family=Dosis:300,500,700|Alegreya:700|Lato:300,300i,700');
2017-04-05 00:23:35 +02:00
2017-05-02 23:23:26 +02:00
// Général
2017-04-29 03:49:39 +02:00
* {
box-sizing: border-box;
}
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: $textfontsize;
2017-04-05 00:23:35 +02:00
font-weight: 300;
}
h1, h2, h3, h4 {
2017-04-15 20:03:08 +02:00
font-family: $headfont;
2017-04-29 04:12:58 +02:00
line-height: 1.2;
2017-05-16 23:37:10 +02:00
font-weight: bold;
2017-04-05 00:23:35 +02:00
}
h1 {
font-size: 2.3em;
2017-04-29 03:49:39 +02:00
position: relative;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.4em;
}
2017-04-29 03:49:39 +02:00
b, strong {
font-weight: bold;
2017-04-05 00:23:35 +02:00
}
2017-04-29 03:49:39 +02:00
em, i {
font-style: italic;
}
2017-05-02 23:23:26 +02:00
a {
font-weight: bold;
color: $compl * 0.9;
text-decoration: none;
}
// experiens-BETA
2017-04-05 00:23:35 +02:00
.beta {
2017-04-29 03:49:39 +02:00
position: absolute;
2017-04-05 00:23:35 +02:00
opacity: 0.5;
font-size: 0.7em;
display: inline-block;
2017-04-29 03:49:39 +02:00
transform: translate(-1em, 1em) rotate(-15deg);
2017-04-05 00:23:35 +02:00
}
// Feedback
#feedback-button {
position:fixed;
2017-06-17 17:41:52 +02:00
right:0;
top:30%;
color:#fff;
z-index:4;
background: #000;
padding: 14px;
2017-06-17 17:41:52 +02:00
transform: rotateZ(-90deg);
transform-origin: bottom right;
}
// Cartes
2017-05-02 23:23:26 +02:00
.leaflet-container {
z-index: 1;
2017-04-05 00:23:35 +02:00
}
2017-05-02 23:23:26 +02:00
// Header
2017-04-05 00:23:35 +02:00
header {
background: $barre;
display: flex;
justify-content: space-between;
align-items: center;
2017-04-29 03:49:39 +02:00
#showmenu {
display:none;
}
nav {
display: inline;
ul {
display: inline-flex;
2017-04-05 00:23:35 +02:00
2017-04-29 03:49:39 +02:00
li {
display: inline-table;
2017-04-05 00:23:35 +02:00
2017-04-29 03:49:39 +02:00
a {
text-align: center;
display: table-cell;
padding: 0 20px;
height: 90px;
vertical-align: middle;
color: lighten($fond, 40%);
&:hover {
background: $barre * 0.6;
}
2017-04-05 00:23:35 +02:00
}
}
}
}
a {
color: #fff;
text-decoration: none;
}
h1 {
padding: 15px;
word-wrap: none;
2017-04-29 03:49:39 +02:00
display: inline-block;
2017-04-05 00:23:35 +02:00
}
}
2017-05-02 23:23:26 +02:00
// General content
2017-04-05 00:23:35 +02:00
.content {
background: #efefef;
2017-04-29 03:49:39 +02:00
width: 900px;
max-width: 95vw;
2017-04-05 00:23:35 +02:00
padding: 30px;
margin: 15px auto;
p {
margin: 0.5em 0;
}
2017-05-02 23:23:26 +02:00
h1 {
margin-bottom: 0.6em;
2017-04-29 03:49:39 +02:00
}
2017-06-27 23:14:24 +02:00
ul.messages {
margin: -20px;
margin-bottom: 15px;
li {
background: #ccc;
color: #333;
padding: 5px 10px;
font-weight: bold;
font-size: 0.8em;
&.success {
background-color: darken($fond, 10%);
color: #fff;
}
}
}
2017-04-05 00:23:35 +02:00
}
2017-05-02 23:23:26 +02:00
// Liste des stages condensée sur le profil
2017-05-02 23:23:26 +02:00
.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 {
2017-05-02 23:23:26 +02:00
background: darken($compl, 10%);
2017-04-29 04:12:58 +02:00
color: #fff;
}
}
&: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;
}
}
}
2017-05-02 23:23:26 +02:00
.stage-liste {
li {
display: block;
2017-06-19 23:17:05 +02:00
position: relative;
2017-05-02 23:23:26 +02:00
&.date-maj {
2017-05-16 23:37:10 +02:00
font-weight: 300;
2017-05-02 23:23:26 +02:00
font-size: 0.9em;
padding: 3px 0;
2017-06-19 23:17:05 +02:00
font-style: italic;
2017-05-02 23:23:26 +02:00
}
&.stage {
padding: 10px;
background: #fff;
margin: 10px;
2017-06-19 23:17:05 +02:00
border-left: 5px solid $compl;
2017-05-02 23:23:26 +02:00
h3 {
font-size: 1.4em;
2017-05-16 23:37:10 +02:00
padding-left: 5px;
& > a {
color: darken($vert, 20);
}
2017-05-02 23:23:26 +02:00
.auteur {
font-size: 0.8em;
2017-05-16 23:37:10 +02:00
&, a {
font-family: $textfont;
font-weight: normal;
}
2017-05-02 23:23:26 +02:00
}
}
}
2017-05-16 23:37:10 +02:00
.misc-hdr {
margin-bottom: 10px;
.dates {
& > span {
display: table-cell;
vertical-align: middle;
}
.year {
padding-left: 8px;
}
2018-03-19 21:52:30 +01:00
svg text {
font-size: 0.8;
}
2017-05-16 23:37:10 +02:00
}
}
2017-06-19 23:17:05 +02:00
a.hoverlink {
position: absolute;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
}
2017-05-02 23:23:26 +02:00
}
}
2017-04-27 21:42:13 +02:00
ul.infos {
margin: 0 -3px;
2017-05-16 23:37:10 +02:00
padding: 0;
2017-06-19 23:17:05 +02:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 100;
2017-04-27 21:42:13 +02:00
li {
display: inline-block;
padding: 5px;
margin: 3px;
2017-05-16 23:37:10 +02:00
font-weight: bold;
2017-04-27 21:42:13 +02:00
font-size: 0.9em;
border-radius: 4px;
2017-06-19 23:17:05 +02:00
flex-grow: 1;
text-align: center;
background-color: #ddd;
2017-04-27 21:42:13 +02:00
&.thematique {
2017-06-19 23:17:05 +02:00
color: darken($vert, 25);
background-color: lighten($vert, 25);
2017-04-27 21:42:13 +02:00
}
&.matiere {
2017-06-19 23:17:05 +02:00
color: darken($fond, 30);
background-color: lighten($fond, 25);
2017-04-27 21:42:13 +02:00
}
&.lieu {
2017-06-19 23:17:05 +02:00
color: darken($rouge, 25);
background-color: lighten($rouge, 25);
}
&.year {
background-color: darken($rouge, 20);
color: #fff;
display: none;
2017-04-27 21:42:13 +02:00
}
2017-10-06 10:59:48 +02:00
&.avis-len {
background-color: transparent;
border: 1px solid #eee;
border-bottom: 3px solid;
padding: 4px;
padding-bottom: 2px;
&.avis-vide {
border-bottom-color: #ddd;
}
&.avis-court {
border-bottom-color: lighten(#ff0, 20);
}
&.avis-moyen {
border-bottom-color: lighten($vert, 25);
}
&.avis-long {
border-bottom-color: lighten($fond, 10);
}
}
2017-04-27 21:42:13 +02:00
}
2017-06-19 23:17:05 +02:00
&:after {
content: "";
flex: 1000;
2017-10-06 11:28:22 +02:00
}
}
section.profil {
background: #fff;
max-width: 600px;
padding: 5px 15px;
margin: 5px auto;
margin-bottom: 15px;
div.infos {
border-bottom: 3px solid $vert;
display: flex;
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
2017-06-19 23:17:05 +02:00
}
2017-04-27 21:42:13 +02:00
}
2017-05-02 23:23:26 +02:00
//
//
// Détail d'un stage
2017-06-17 00:34:11 +02:00
@import "_stage_detail.scss";
2017-05-02 23:23:26 +02:00
//
//
2017-04-15 20:03:08 +02:00
// Formulaires
2017-05-02 23:23:26 +02:00
// Général
2017-05-02 03:11:34 +02:00
input, textarea, select, div.tinymce, option, optgroup:before {
2017-04-15 20:03:08 +02:00
background: #fff;
font-size: 1em;
font-family: $textfont;
line-height: 1.3em;
font-weight: 500;
padding: 5px;
2017-04-29 03:49:39 +02:00
text-align: left;
2017-04-27 21:42:13 +02:00
&:focus, &.mce-edit-focus {
background-color: lighten($fond, 40%);
outline: none;
}
2017-04-15 20:03:08 +02:00
}
2017-05-02 03:11:34 +02:00
2017-04-27 21:42:13 +02:00
input[type='text'], input[type='password'],
2017-06-17 00:34:11 +02:00
input[type='email'], input[type='number'], 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;
}
2017-05-02 23:23:26 +02:00
select {
-moz-appearance: none;
appearance: none;
width: auto;
margin-right: 5px;
cursor: pointer;
2017-06-17 17:41:52 +02:00
padding: 0;
padding-right: 30px;
background: url($staticurl + "images/choix.svg") no-repeat;
background-position: right center;
background-color: #fff;
background-size: contain;
2017-05-02 23:23:26 +02:00
option {
padding: 3px;
white-space: pre-wrap;
}
optgroup {
option {
padding-left: 10px;
}
&:before {
font-weight:bold;
}
}
}
input[type="submit"], .btn {
font: $textfontsize $textfont;
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;
2017-05-16 23:53:30 +02:00
display: inline-block;
}
p.submits {
text-align: right;
2017-04-20 01:53:29 +02:00
}
2017-05-16 23:53:30 +02:00
form .commentaire {
font-style: italic;
2017-04-20 01:53:29 +02:00
}
2017-04-27 21:42:13 +02:00
.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 {
2017-05-02 23:23:26 +02:00
content: "";
2017-04-27 21:42:13 +02:00
width: 30px;
display: inline-block;
}
}
2017-04-15 20:03:08 +02:00
textarea, div.tinymce {
2017-05-16 23:37:10 +02:00
font-family: $paragraphfont;
2017-04-15 20:03:08 +02:00
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;
}
2017-05-02 23:23:26 +02:00
// Formulaire et labels
2017-04-15 20:03:08 +02:00
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;
}
2017-04-15 20:03:08 +02:00
}
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
2017-05-02 23:23:26 +02:00
2017-04-15 20:03:08 +02:00
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;
2018-12-26 22:00:36 +01:00
z-index: 2;
2017-04-15 20:03:08 +02:00
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 {
2017-04-29 03:49:39 +02:00
background: lighten($compl, 30%);
2017-04-15 20:03:08 +02:00
}
}
li.as-message {
font-style: italic;
}
}
}
2017-04-16 00:03:04 +02:00
//
2017-05-02 23:23:26 +02:00
//
// Fenêtre
.window {
display:none;
position:fixed;
width: 100%;
height: 100%;
overflow: hidden;
top: 0;
left: 0;
2017-04-29 03:49:39 +02:00
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;
2017-04-27 21:42:13 +02:00
form {
label, .label {
width: 150px;
}
}
}
2017-04-20 01:53:29 +02:00
.window-closer {
position: absolute;
top: 0;
right: 0;
padding: 12px;
z-index: 3;
&:after {
content: "×";
}
}
}
2017-05-02 23:23:26 +02:00
//
//
// 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 {
2017-04-19 01:56:15 +02:00
display: none;
}
&.modif {
.lieu-choixmodif {
display: unset;
}
}
&.modif, &.attente {
.lieu-ui {
display: none;
}
2017-04-20 23:04:07 +02:00
}
2017-04-19 01:56:15 +02:00
&.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;
}
}
}
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-29 03:49:39 +02:00
max-height: 90vh;
2017-04-20 02:59:44 +02:00
}
2017-04-20 23:04:07 +02:00
2017-04-25 22:02:23 +02:00
2017-05-02 23:23:26 +02:00
#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;
2017-06-26 23:40:58 +02:00
h1 {
margin-bottom: 3px;
}
2017-05-02 23:23:26 +02:00
& > * {
display: inline-block;
}
p {
text-align: right;
}
}
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;
2017-04-29 03:49:39 +02:00
&:first-child {
direction: rtl;
& > * {
direction: ltr;
}
}
2017-04-25 22:02:23 +02:00
& > div {
display:table-cell;
vertical-align: middle;
text-align: center;
p {
margin: 15px 15px;
}
}
}
}
2017-04-25 23:30:20 +02:00
2017-05-12 23:29:29 +02:00
// FAQ
.faq-toc {
2017-05-16 23:37:10 +02:00
font-family: $paragraphfont;
2017-05-12 23:29:29 +02:00
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 {
2017-05-16 23:37:10 +02:00
color: darken($fond, 30);
background: lighten($fond, 20) !important;
2017-05-12 23:29:29 +02:00
}
}
}
}
.faq {
article {
background: #fff;
padding: 15px;
h2 {
2017-05-16 23:37:10 +02:00
background-color: lighten($compl, 20%);
color: darken($compl, 20%);
2017-05-12 23:29:29 +02:00
margin: -15px;
padding: 15px;
}
h3 {
2017-05-16 23:37:10 +02:00
color: darken($vert, 20%);
background-color: lighten($vert, 30%);
2017-05-12 23:29:29 +02:00
margin: 0 -15px;
margin-top: 30px;
padding: 10px 15px;
&:nth-child(2) {
margin-top: 0;
}
}
ul {
padding-left: 20px;
li {
list-style: initial;
}
}
2017-05-16 23:37:10 +02:00
p, ul {
font-family: $paragraphfont;
font-size: $textfontsize - 1px;
max-width: 700px;
margin-left: auto;
margin-right: 5%;
2017-05-12 23:29:29 +02:00
}
}
}
2018-09-09 00:17:11 +02:00
//
//
// Modération
table.stats {
width: 100%;
background: #fff;
margin: 20px 0;
cellspacing: 1px;
th {
font-weight: bold;
border-top: 1px solid #000;
border-bottom: 1px solid #999;
}
td, th {
padding: 5px 3px;
text-align: center;
}
}
2017-06-17 00:34:11 +02:00
//
//
// Recherche
@import "_recherche.scss";
//
//
// Responsive
2017-04-29 03:49:39 +02:00
@import "_responsive.scss";