bootstrap5, main layout settings

This commit is contained in:
2021-07-02 13:00:56 +02:00
parent 3694eb5bf2
commit 8e8cdfce0a
12 changed files with 491 additions and 448 deletions

View File

@@ -2,143 +2,178 @@
* These custom styles will override bootstrap enabled stylesheets
*/
/// titles
h1, h2, .h1, .h2 {
font-weight: $headings-font-weight + 200;
font-weight: $headings-font-weight + 200;
}
/// buttons
.btn-success,
.btn-success:hover,
.btn-warning,
.btn-warning:hover {
color: $gray-100;
}
/// typography
.open_sansbold {
font-weight: bold;
font-weight: bold;
}
.chill-user-quote {
border-left: 10px solid $yellow;
margin: 1.5em 10px;
padding: .5em 15px;
quotes: "\201C" "\201D" "\2018" "\2019";
background-color: $gray-200;
blockquote {
border-left: 0.4em solid $gray-400;
padding-left: 0.9em;
margin-left: 0.9em;
font-style: italic;
}
}
/// forms
@mixin title_in_form {
font-size: 1.438em;
font-weight: 700;
width: 100%;
border-bottom: 3px solid $gray-200;
margin-bottom: 1em;
display: block;
font-size: 1.438em;
font-weight: 700;
width: 100%;
border-bottom: 3px solid $gray-200;
margin-bottom: 1em;
display: block;
}
form {
fieldset {
margin-top: 1em;
& > legend {
@include title_in_form;
}
}
/* avoid useless html in first level of the custom fields row loop in forms
fieldset {
margin-top: 1em;
& > legend {
@include title_in_form;
}
}
/* avoid useless html in first level of the custom fields row loop in forms
* (better should to improve the loop)
*/
& > div.container-fluid {
& > div.row > .parent {
padding: 0;
& div.cf-fields span.cf-title {
margin: 1em -15px 0;
width: calc(100% + 30px);
@include title_in_form;
& > div.container-fluid {
& > div.row > .parent {
padding: 0;
& div.cf-fields span.cf-title {
margin: 1em -15px 0;
width: calc(100% + 30px);
@include title_in_form;
}
}
}
}
label.required:after {
content: " *";
color: $red;
}
}
label.required:after {
content: " *";
color: $red;
}
}
/// chill elements of design
.sticky-form-buttons {
margin-top: 4em;
background-color: $beige;
position: sticky;
bottom: 0.3em;
text-align: center;
display: flex;
padding: 0.8em 1.6em;
border-radius: 0;
margin-top: 4em;
background-color: $beige;
position: sticky;
bottom: 0.3em;
text-align: center;
display: flex;
padding: 0.8em 1.6em;
border-radius: 0;
}
.chill-user-quote {
border-left: 10px solid $yellow;
margin: 1.5em 10px;
padding: 0.5em 15px;
quotes: "\201C" "\201D" "\2018" "\2019";
background-color: $gray-200;
blockquote {
border-left: 0.4em solid $gray-400;
padding-left: 0.9em;
margin-left: 0.9em;
font-style: italic;
}
}
div.chill_address {
div.chill_address_address {
margin: .7em 0;
font-size: 98%;
font-variant: small-caps;
p {
display: inline-block;
margin: 0 0 0 1.5em;
text-indent: -1.5em;
}
}
div.chill_address_address {
margin: 0.7em 0;
font-size: 98%;
font-variant: small-caps;
p {
display: inline-block;
margin: 0 0 0 1.5em;
text-indent: -1.5em;
}
}
}
/// base layout
html, body {
min-height: 100%;
height: 100%;
body {
display: flex;
flex-direction: column;
min-height: 100vh;
footer {
margin-top: auto;
}
}
nav.navbar {
.navbar-brand {
img {
padding: 0;
.navbar-brand img {
height: 50px;
margin: -0.3125rem 0;
}
}
.navbar-toggler,
.navbar-collapse {
float: right;
}
.navbar-nav {
display: flex;
align-items: center;
}
.nav-item a {
}
.dropdown-menu {
.dropdown-item {
width: 120%;
i {
float: right;
margin: 8px 0;
}
.navbar-collapse,
.navbar-toggler {
float: right;
}
ul.navbar-nav {
display: flex;
align-items: stretch;
li.nav-item {
display: flex;
&.btn {
padding-top: 0;
padding-bottom: 0;
}
& > a {
align-self: center;
}
form.form-inline {
align-self: center;
display: flex;
input.form-control {
align-self: center;
height: 32px;
}
}
}
}
}
}
.dropdown-menu {
.dropdown-item {
width: 120%;
i {
float: right;
}
}
}
}
div.header-name,
div.header-details {
div.row > div:first-child {
margin-left: 1.5em;
}
}
#content_conainter {
position: relative;
min-height: calc(100% - 195px);
}
.footer {
background: $dark;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
p {
font-family: Open Sans;
font-weight: 300;
clear: both;
color: $white;
font-size: .9em;
line-height: 1.5em;
margin: auto;
max-width: 35em;
text-align: center;
a, a:hover {
text-decoration: underline;
}
}
}
footer.footer {
background: $dark;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
p {
font-family: Open Sans;
font-weight: 300;
clear: both;
color: $white;
font-size: 0.9em;
line-height: 1.5em;
margin: auto;
max-width: 35em;
text-align: center;
a, a:hover {
text-decoration: underline;
}
}
}

View File

@@ -23,7 +23,7 @@ $black: #111 !default;
// scss-docs-start gray-colors-map
$grays: (
"100": $gray-100,
"200": $gray-200, /* = $chill-llight-gray, $chill-gray */
"200": $gray-200, /* = $chill-light-gray, $chill-gray */
"300": $gray-300,
"400": $gray-400,
"500": $gray-500, /* = $chill-light-gray */

View File

@@ -4,10 +4,7 @@
// Or compile bootstrap only enabled assets
require('./bootstrap.scss');
// You can specify which plugins you need
import Dropdown from 'bootstrap/js/src/dropdown';
//import { Tooltip, Toast, Popover } from 'bootstrap';
import Modal from 'bootstrap/js/dist/modal';
import Collapse from 'bootstrap/js/src/collapse';

View File

@@ -11,12 +11,6 @@
@import 'alert-with-actions';
/* [hack] /!\ Contourne le positionnement problématique du div#content_conainter suivant,
* car sa position: relative le place au-dessus du bandeau et les liens sont incliquables */
div.subheader {
height: 130px;
}
/*
* Specific rules
*/