@import "compass"; #main { /* Boutons */ .btn-primary, .btn-secondary { @include border-radius(0px); font-family: 'worksans_semibold'; .bi { margin-right: 5px; } } .btn-primary { background-color: $color-primary; border: 0px none; color: white; &:hover, &:active, &:focus { filter: brightness(90%); border: 0px none; color: white; } } .btn-secondary { color: black; background-color: $color-gray-light; border: solid 1px $color-gray-light; &:hover, &:focus, &.active { background-color: $color-gray; border: solid 1px $color-gray; color: black; } } /* Alertes */ .alert { border: 0px none; @include border-radius(0px !important); color: black; padding: 20px; margin-bottom: 20px; &.alert-success { background-color: #e4e9ad !important; } &.alert-info { background-color: #97bfc4 !important; } &.alert-warning { background-color: #ecd58e !important; } &.alert-danger { background-color: #edbaa4 !important; } &.alert-dark { background-color: $color-gray !important; } } /* Tableaux */ $table-striped-bg-factor: black; .table { border: 0px none; &.table-striped > tbody > tr:nth-of-type(2n) > *, thead tr th { background-color: $color-gray; } &.table-striped > tbody > tr:nth-of-type(2n+1) > * { background-color: #f8f7f3; } thead tr th, tbody tr td { @include box-shadow(-20px 0 20px -20px rgba(0,0,0,0.2) inset); &:last-child { @include box-shadow(none); } } thead { tr { border: 0px none; th { border: 0px none; padding: 10px 20px; } } } tbody { tr { border: 0px none; td { border: 0px none; padding: 20px; } } } } /* Formulaires */ form { .control-label { font-family: 'worksans_medium'; } input[type="text"], input[type="email"], input[type="password"], textarea, select { @include box-shadow(none); @include border-radius(0px); border: solid 1px $color-gray-dark; } .form-control:hover { border: solid 1px gray; } .form-control:focus { @include box-shadow(0px 0px 0px 1px $color-primary) ; border: solid 1px $color-primary; } .has-error { .control-label { color: black; } .form-control:focus, .form-control { @include box-shadow(none); border-color: #a94442; } .help-block-error { color: #a94442; } } .form-buttons { text-align: right; } } } /* Divers */ .float-left { float: left; } .float-right { float: right; } .clr { clear: both; } /* Navigation utilisateur en haut du site */ .container-nav-user-top { position: relative; z-index: 999; .nav-user-top { position: absolute; top: 0px; right: 0px; background-color: white; z-index: 100; .navbar { @include border-radius(0px); border: 0px none; padding: 0px; margin: 0px; min-height: 0px; ul { position: relative; left: -10px; li { padding-left: 5px; a.nav-link { padding-left: 10px; padding-right: 10px; padding-top: 7px; padding-bottom: 7px; font-family: 'worksans_semibold'; color: black; font-size: 16px; &:hover, &:focus, &.active { background: none; color: $color-primary; } .bi { color: $color-primary; font-size: 16px; margin-right: 2px; position: relative; top: 1px; } } .dropdown-menu { a { padding: 2px 20px; &:hover, &:focus { background-color: $color-gray; } } } } } } .dropdown-menu { z-index: 9999; .divider.dropdown-header { padding: 0px; } } } } @media screen and (max-width: 991px) { .container-nav-user-top { padding: 0px; margin: 0px; width: 100%; max-width: none; .nav-user-top { position: relative; .navbar { ul { width: 100%; display: block; margin-right: 0px; text-align: center; li { display: inline-block; &.nav-item-producers { .dropdown-menu { right: -95px; } } } } .link-text { display: none; } .dropdown-menu { position: absolute; right: 5%; left: auto; border: 1px solid #ddd; background: #fff; @include box-shadow(0px 0px 4px gray); li { a { padding-left: 15px; } } } } } } } /* Block de date */ .block-date { margin: 0px auto; padding-top: 0px; text-align: center; .day { text-transform: capitalize; line-height: 15px; font-size: 13px; text-transform: uppercase; } .num { font-size: 30px; line-height: 35px; font-weight: bold; } .month { text-transform: uppercase; line-height: 15px; font-size: 13px; color: darken($color-primary, 5); } } /* Page d'erreur */ #main #content .site-error { .col-lg-6 { margin: 0px auto; float: none; } .panel { .panel-body { padding-bottom: 0px; } h2 { text-transform: none; font-size: 25px; margin-top: 0px; margin-bottom: 0px; } } .alert { padding-bottom: 5px; h2 { margin-top: 5px; } p { margin-bottom: 15px; } .btn { text-decoration: none; } } .actions { //text-align: center; } } /* Paiement */ .payment-detail-remaining-surplus { font-size: 13px; color: gray; strong { font-weight: bold; } }