@import "compass"; /* Environnement beta */ .badge-environment-beta { position: relative; display: inline-block; font-size: 13px; line-height: 20px; font-family: 'worksans_semibold'; font-weight: normal; padding: 1px 10px; border-radius: 10px; color: white; background-color: black; text-align: center; vertical-align: baseline; } #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, &.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; } a { color: black; } p:last-child { margin-bottom: 0px; } } /* Card */ .card { @include border-radius(0px); } /* Tables */ $table-striped-bg-factor: black; .table { thead { tr { th { font-family: 'worksans_semibold'; } } } &.table-bordered { } &.table-striped { 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; } } } } .btn-secondary { display: inline-block; margin-bottom: 5px; } } /* 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 { @include appearance(auto); } .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; background-color: white; .badge-environment-beta { position: absolute; top: 8px; left: 15px; } .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; } } &.nav-item-producers .dropdown-menu { right: -75px; left: -75px; } &.nav-item-user .dropdown-menu { right: -22px; left: 9px; } .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 { .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 { left: -115px; width: 300px; } &.nav-item-user .dropdown-menu { left: -40px; width: 150px; } } } .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: 15px; text-transform: uppercase; } .num { font-size: 30px; line-height: 35px; font-weight: bold; } .month { text-transform: uppercase; line-height: 15px; font-size: 15px; color: darken($color-primary, 5); } } /* Page d'erreur */ #main #content .site-error { .col-lg-6 { margin: 0px auto; float: none; } .panel { .panel-body { } h2 { text-transform: none; font-size: 25px; margin-top: 0px; margin-bottom: 20px; } p:last-child { margin-bottom: 0px; padding-bottom: 0px; } } .alert { padding-bottom: 5px; h3 { margin-top: 5px; margin-bottom: 18px; } p { margin-bottom: 15px; } .btn { text-decoration: none; } } p.error-message { font-weight: bold; } } /* Paiement */ .payment-detail-remaining-surplus { font-size: 13px; color: gray; strong { font-weight: bold; } }