e-tandem_UI/static/css/main.css
2024-12-10 10:46:44 +01:00

578 lines
No EOL
12 KiB
CSS

@import url('fonts/nunito.css');
@import url('fonts/lexend.css');
html {
color: rgba(53,53,53,1)!important;
font-size: 1rem;
line-height: 1.15;
font-kerning: normal;
overflow-x: hidden;
}
:root{
--background: rgb(240,240,240);
--background-wrapper: rgb(250,250,250);
--primary: rgb(103,103,103);
--secondary: rgb(220,220,220);
/* --accent:253,195,20; /* rgb */
--accent:45,98%; /* hsl */
--accent-normal: hsl(var(--accent), 54%);
--accent-light: hsl(var(--accent), 75%);
--bs-btn-hover-bg: rgb(242, 135, 5);
--bs-link-color: rgb(242, 135, 5);
--bs-body-font-family: 'Nunito', Arial, Tahoma, sans-serif;
--bs-ttl-font-family: 'Lexend', Arial, Tahoma, sans-serif;
--top-bar: 6.125rem;
--bottom-bar: 5em;
--div-padding: 3em;
--bs-navbar-color: rgba(242, 135, 5, .15);
}
body {
font-family: var(--bs-body-font-family);
background-color: var(--background);
overflow-x: hidden;
letter-spacing: .125px;
font-variant-ligatures: no-common-ligatures;
margin: 0;
}
h1, h2, h3, h4, h5{
font-family: var(--bs-ttl-font-family);
}
::selection, ::-moz-selection {
text-shadow: none;
}
.navbar-toggler{
color: var(--bs-btn-hover-bg);
}
.custom-toggler.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,135,5,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-link, .text-link{
color: var(--bs-link-color);
text-decoration: none;
}
.btn-link{
padding: .725rem 1rem;
}
.btn-link:hover, .btn-link:focus-visible, .text-link:hover, .text-link:focus-visible{
text-decoration: underline;
color: var(--bs-link-color);
background-color: transparent;
text-underline-offset: 0.375em;
}
.top-bar{
height: var(--top-bar);
border-bottom: 1px solid var(--accent-normal);
background-color:white;
}
.top-bar > div{
height: 100%;
}
/* navbar */
.navbar-brand img{
height: calc(var(--top-bar) - 1.5em);
}
#mainNav, .offcanvas-backdrop{
top: var(--top-bar);
}
.offcanvas-header, .offcanvas-body{
padding: 1.625rem;
}
.offcanvas.offcanvas-end{
border-left: none;
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: auto;
min-height: calc(100vh - var(--top-bar));
margin-top: var(--top-bar);
}
/* Screens */
/* [data-screen="error404"], [data-screen="connect"]{
display: flex;
flex-direction: column;
min-height: 100vh;
}
[data-screen="error404"] main, [data-screen="connect"] main{
margin: auto 0;
} */
[data-screen="search"] .container-fluid > .row, [data-screen="profile"] .container-fluid > .row{
justify-content: center;
}
/* left side menu */
.nav-item .badge{
background-color: var(--bs-link-color);
}
.side-menu .nav-link{
color: black;
padding: 0.725rem 1rem;
border-radius: 0.25rem;
background: white;
border-left: 0px solid #f28705;
transition: all ease-in 0.25s;
}
.side-menu .nav-link.active{
background-color: #f28705;
font-weight: 700;
pointer-events: none;
cursor: default;
}
.side-menu .nav-link:focus{
color: black;
background-color: #fdc314;
font-weight: 600;
}
.side-menu li:not(:first-child){
margin-top: 0.35rem;
}
.separator{
margin-top: 1.5rem;
border-bottom: 2px solid #f28705;
font-weight: 700;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
}
/* heros */
.hero{
/* background-image: linear-gradient(to right bottom, #f28705, #f69602, #f9a502, #fbb409, #fdc314); */
background-image: linear-gradient(to right bottom, rgb(242,135,5), rgb(246,150,2), rgb(249,165,2), rgb(251,180,9), rgb(253,155,20));
margin-top: var(--top-bar);
height: auto;
border-bottom-left-radius: 1rem;
border-bottom-right-radius: 1rem;
}
.hero > div{
display: flex;
justify-content: center;
}
.hero .row{
justify-content: center !important;
align-items: flex-end !important;
}
.hero div:not(.bottom-anchored){
margin-top: auto !important;
margin-bottom: auto !important;
}
.hero-primary, .hero-secondary{
padding: var(--div-padding)
}
/* .hero-secondary{
min-height: 30vh;
} */
#lead{
display: flex;
height: 100%;
}
/* screens */
.form-sign{
background-color: white;
padding: var(--div-padding);
border-radius: 0.5rem;
}
.panel{
background: white;
padding: var(--div-padding);
border-radius: 0.5rem;
}
/* #profile label{
font-weight: 700;
} */
#userProfileActivation{
padding: 1.5em;
background-color: var(--accent-light);
}
#activateUserProfile{
margin-left: 1em;
margin-top: 0;
width: 3em;
height: 1.5em;
}
#tandem-meet .col{
text-align: center;
padding: 1.5rem;
transition: all ease-out 0.3s;
}
#tandem-meet .col img{
margin-bottom: 1rem;
}
#tandem-meet .col label{
font-weight: initial;
}
#tandemExplanations{
padding-top: 5rem;
padding-bottom: 5rem;
background-color: var(--background-wrapper);
}
#tandemExplanations header{
display: grid;
justify-items: center;
text-align: center;
padding: 0 3rem;
}
#tandemExplanations header p{
color: rgb(100,100,100);
}
#tandemExplanations article{
display: grid;
justify-items: center;
margin-top: 2rem;
border-radius: 1rem;
background-color: var(--accent-light);
padding: var(--div-padding);
}
#tandemMethod{
background-image: linear-gradient(to right bottom, rgb(242,135,5), rgb(246,150,2), rgb(249,165,2), rgb(251,180,9), rgb(253,155,20));
}
.bottom-anchored{
margin-bottom: calc(var(--div-padding) * -1);
}
article li:not(:first-of-type){
margin-top: 0.5rem;
}
#partners .container-fluid{
background-color: white;
min-height: 5vh;
}
/* user profile */
.profile{
background: white;
padding: calc(var(--div-padding) / 2);
border-radius: 0.25rem;
margin-top: 1rem;
position: relative;
}
.profile:not(:first-child){
margin-top: 2.25rem;
}
.profile:not(:first-child):before {
content: '•••';
display: flex;
position: absolute;
top: -1.625rem;
width: 100%;
left: 0;
justify-content: center;
align-items: center;
font-size: 1.2em;
line-height: .425em;
color: darkgray;
letter-spacing: .25em;
}
.profile .userAvatar{
text-align: center;
}
.userAvatar img{
width: 9rem;
height: 9rem;
object-fit: cover;
object-position: top;
border: 2px solid white;
border-radius: 50%;
}
.profile .label, #signalModal label{
font-weight: 700;
}
.userDescription{
margin-top: 1.5em;
}
.profileOptions{
margin-top: 2em;
justify-content: end;
display: flex;
gap: 1rem;
}
/* search filters */
#searchFilters{
border: 1px solid white;
background-color: rgba(255,255,255,.5);
margin-top: 0.5rem;
}
#searchFilters form{
padding: calc(var(--div-padding) / 3);
}
/* btn */
.btn{
font-weight: 600;
}
.btn-primary{
background-color: #f28705;
border-color: #f28705;
}
.btn-hero-primary{
background-color: white;
color: var(--primary);
padding: 0.5em 1.5em;
border: none;
}
.btn-hero-secondary{
border-color: var(--primary);
color: var(--primary);
}
.btn-cta{
background-color: var(--primary);
color: white;
padding: 0.5em 1.5em;
}
.btn-cta, .btn-primary, .btn-secondary, .btn-outline-primary, .btn-outline-secondary{
font-size: 1em;
}
.btn:disabled, .btn.disabled{
background: var(--bs-gray-400);
color: var(--bs-gray-600);
border-color: var(--bs-gray-500);
}
.btn-stack{
display: flex;
justify-content: flex-start;
gap: 1rem;
}
/* forms */
.lang-select{
max-width: 12em;
}
label[for="lang"]{
font-size: 0.9em;
margin-bottom: 0.25rem;
}
#searchFilters label{
font-weight: 600;
}
/* overrides */
ul, ol{
padding-left: 1rem;
}
/* helpers */
.rounded{
--bs-border-radius: 2rem;
}
.emphasis{
color: var(--bs-link-color);
}
sup.emphasis{
margin-left: 0.125rem;
margin-right: 0.125rem;
}
.validated{
display: flex;
align-items: center;
}
.validated::before{
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="icon-ui"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg>');
margin-right: 0.5rem;
width: 1.5em;
height: 1.5em;
display: inline-flex;
}
.form-check-input:checked {
background-color: var(--bs-link-color);
border-color: var(--bs-link-color);
}
/* modals */
.modal-header{
border-bottom: none;
}
.modal-title{
width: 100%;
text-align: center;
}
/* footer */
footer{
background-color: rgb(220,220,220);
padding: calc(var(--div-padding) / 2);
}
footer .container-fluid{
justify-content: space-between;
}
footer a img{
max-height: 3.5em;
}
/* partners logos */
#partners{
padding: var(--div-padding);
border-top: 1px solid var(--accent-normal);
border-bottom: 1px solid var(--secondary);
}
.partners-logo-grid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
grid-auto-rows: auto;
grid-gap: 2em;
margin: 0 auto;
max-width: 100%;
justify-items: center;
}
.partner-logo{
display: flex;
/* justify-content: center; */
align-items: center;
}
.partner-logo img, .partner-logo svg{
max-width: 7em;
max-height: 3em;
min-height: 2.5em;
}
.ui-btn{
display: inline-flex;
background-color: white;
border-radius: 0.5rem;
}
.icon-ui{
width: 1.25em;
height: 1.25em;
margin-right: 0.65em;
}
nav .icon-ui{
display: inline-flex;
margin-right: .75rem;
}
/* media queries */
@media (width <= 576px) {
:root{
--div-padding: 2em;
--bottom-bar: 40px;
}
.navbar-brand{
margin-left: 1rem;
}
.lead{
hyphens: none;
}
.lang-select{
max-width: none;
}
footer a img{
height: 100%;
max-height: 2.5em;
}
.partners-logo-grid{
grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
}
.profile .userAvatar, .profile .userPseudo, .offcanvas .userAvatar{
margin: 0 auto;
text-align: center
}
.profile .userPseudo{
margin: .5em auto;
}
}
@media (width <= 992px) {
:root{
--top-bar: 5rem;
}
h1, h2, h3, h4{
text-align: center;
}
.profileOptions{
display: grid;
gap: 0 .5rem;
width: fit-content;
margin: calc(var(--div-padding) / 3) auto 0;
}
.offcanvas .userAvatar{
margin: 0 auto;
text-align: center
}
.offcanvas .userAvatar img{
width: 5rem;
height: 5rem;
}
.offcanvas-body{
padding: 0;
background: rgb(253, 195, 20);
}
.offcanvas-body nav{
margin-top: calc(var(--div-padding) / 2);
}
.offcanvas .nav{
padding-left: calc(var(--div-padding) / 2);
margin-bottom: auto !important;
flex-direction: column !important;
}
.offcanvas .nav-link{
display: flex;
align-items: center;
background: none;
padding: var(--bs-nav-link-padding-y) calc(var(--div-padding) / 2);
border-radius: 0;
color: black;
width: 100%;
}
.offcanvas .nav-link.active{
background-color: rgba(255,255,255,.5);
font-weight: 700;
pointer-events: none;
cursor: default;
border-top-left-radius: 2rem;
border-bottom-left-radius: 2rem;
}
.offcanvas .nav-link:focus{
color: white;
background-color: #fdc314;
font-weight: 600;
}
.offcanvas li:not(:first-child){
margin-top: initial;
}
.offcanvas .userPseudo{
font-weight: 700;
margin-top: .5em;
}
#sideLang{
display: flex;
align-items: center;
gap: 1rem;
padding: var(--div-padding);
}
.separator.menu-admin{
margin-top: .5rem;
padding-left: 2rem;
padding-bottom: 0;
}
.separator.menu-admin > .btn-link{
padding: .725rem 1rem .725rem 0;
}
}
@media (576px <= width <= 992px) {
.btn-stack{
justify-content: center;
}
.partners-logo-grid{
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
}
}
@media (hover: hover) {
.btn-cta:hover{
background-color: var(--accent-normal);
color: white;
border: 1px solid white;
}
#tandem-meet .col:hover{
background-color: var(--accent-light);
border-radius: 0.5rem;
transition: all ease-out 0.3s;
}
#tandem-meet .col:hover .form-check-input{
--bs-border-color: var(--primary);
}
.btn-hero-primary:hover{
background-color: var(--primary);
color: white;
}
.side-menu .nav-link:not(.active):hover{
color: black;
background: #fdc314;
border-left: 6px solid #f28705;
transition: all ease-in 0.25s;
}
}