kpsul/bds/static/src/sass/bds.scss

153 lines
2.4 KiB
SCSS
Raw Normal View History

2020-07-19 16:24:33 +02:00
// Compilation command :
2020-07-26 19:06:38 +02:00
// sass -I shared/static/src/ --watch bds/static/src/sass/bds.scss bds/static/bds/css/bds.css --style compressed
2020-07-19 16:24:33 +02:00
2020-07-26 17:17:20 +02:00
$text: black;
2020-07-19 16:24:33 +02:00
@import "bulma/bulma.sass";
$primary_color: #3e2263;
$background_color: #ddcecc;
html, body {
background: $background_color;
font-size: 18px;
}
a {
text-decoration: none;
color: #a82305;
}
/* header */
2020-07-19 19:28:44 +02:00
#search-bar {
background-color: $primary_color;
padding: 0 1em;
2020-07-20 11:34:28 +02:00
margin-bottom: 0;
2020-07-19 16:24:33 +02:00
2020-07-26 19:06:38 +02:00
#logout-mobile {
display: none;
}
@include mobile {
display: flex;
flex-wrap: wrap;
#logout-mobile {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
}
#logout {
display: none;
}
#search-input {
flex: 0 1 100%;
}
}
2020-07-19 22:36:59 +02:00
// Workaround : `justify-content : <left/right>` pas encore supporté
// Voir https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
& :first-child, & :last-child {
justify-content: space-between;
2020-07-19 19:28:44 +02:00
}
2020-07-19 16:24:33 +02:00
2020-07-19 19:28:44 +02:00
& :last-child {
2020-07-19 22:36:59 +02:00
flex-direction: row-reverse;
2020-07-19 19:28:44 +02:00
}
2020-07-20 11:34:28 +02:00
input {
border-radius: 0;
2020-07-26 19:06:38 +02:00
margin: 10px 0;
2020-07-20 11:34:28 +02:00
}
2020-07-19 16:24:33 +02:00
}
2020-07-19 22:36:59 +02:00
/* Autocomplétion du BDS */
2020-07-19 16:24:33 +02:00
.highlight {
text-decoration: underline;
font-weight: bold;
}
2020-07-19 22:36:59 +02:00
.yourlabs-autocomplete {
ul {
list-style: none;
padding: 0;
margin: 0;
2020-07-19 16:24:33 +02:00
2020-07-19 22:36:59 +02:00
li {
height: 2em;
line-height: 2em;
padding: 0;
2020-07-20 11:34:28 +02:00
a {
color: inherit;
}
2020-07-19 22:36:59 +02:00
}
2020-07-19 16:24:33 +02:00
2020-07-19 22:36:59 +02:00
li.hilight {
background: #e8554e;
}
}
2020-07-19 16:24:33 +02:00
}
.autocomplete-item {
display: block;
width: 480px;
height: 100%;
padding: 2px 10px;
margin: 0;
}
.autocomplete-header {
background: #b497e1;
}
.autocomplete-value, .autocomplete-new, .autocomplete-more {
background: white;
}
/* --- Forms --- */
$button_color: lighten($primary_color, 10);
input[type="submit"] {
background-color: $button_color;
color: findColorInvert($button_color);
&:hover {
background-color: $primary_color;
color: findColorInvert($primary_color);
}
}
2020-08-24 16:35:59 +02:00
.button.is-primary {
background-color: $button_color;
color: findColorInvert($button_color);
&:hover {
background-color: $primary_color;
color: findColorInvert($primary_color);
}
}
2020-07-19 16:24:33 +02:00
/* --- Message styling --- */
2020-07-20 19:06:19 +02:00
.notification {
2020-07-19 16:24:33 +02:00
padding: 0.5em 0;
font-size: 1.2em;
text-align: center;
}
2020-08-24 16:35:59 +02:00
/* --- Modals --- */
.modal-card-head {
background-color: $primary_color;
.modal-card-title {
color: findColorInvert($primary_color);
}
}