123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- // /!\ Large Desktop first /!\
- // larger desktop variables (default)
- $animation_style: 0.3s ease-out;
- $global_margins: 1.5vh 1vw 2vh 1vw;
- $buttons_border_width: 1.2px;
- $buttons_padding: 10px 12px;
- $buttons_padding_collapsed: 10px 10px;
- $buttons_inner_margin: 0px 5px 0px 10px;
- $buttons_margin: 14px;
- $main_title_margin: 0px 0px 17px 5px;
- $search_box_height: 2rem;
- $search_icon_offset: -45px;
- $main_color: rgb(0, 0, 0);
- $bg_color: rgba(255, 255, 255);
- $grey_inactive: rgb(110, 110, 110);
- $grey_hover: rgb(50, 50, 50);
- $UI_main_font_size: 1rem;
- $large_picto_size: 2rem;
- $medium_picto_size: 1.3rem;
- // smaller desktop variables
- $buttons_padding--sm: 8px 10px 8px 7px;
- $buttons_padding_collapsed--sm: 8px 2px;
- $buttons_inner_margin--sm: 0px 3px 0px 5px;
- $main_title_margin--sm: 0px 0px 8px 5px;
- $search_box_height--sm: 1.5rem;
- $search_icon_offset--sm: -23px;
- $UI_main_font_size--sm: 0.7rem;
- $large_picto_size--sm: 1.2rem;
- $medium_picto_size--sm: 1rem;
- @font-face {
- font-family: 'Public';
- font-style: normal;
- font-weight: 400;
- src: url('assets/fonts/PublicSans-Regular.ttf') format('TrueType');
- }
- @font-face {
- font-family: 'Public';
- font-style: normal;
- font-weight: 300;
- src: url('assets/fonts/PublicSans-Light.ttf') format('TrueType');
- }
- @font-face {
- font-family: 'Ortica';
- font-style: bold;
- font-weight: 300;
- src: url('assets/fonts/Ortica-Bold.woff2') format('woff2');
- }
- * {
- margin: 0;
- padding: 0;
- }
- button {
- all: initial;
- }
- body {
- font-family: 'Public', sans-serif;
- font-weight: 400;
- color: $main_color;
- overflow: hidden;
- }
- #content {
- padding: $global_margins;
- position: fixed;
- top: 0;
- left: 0;
- width: 100vw;
- height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1;
- svg {
- position: absolute;
- height: 50%;
- path {
- cursor: pointer;
- }
- }
- svg#fill {
- fill: $bg_color;
- /* mix blend mode est dépendant du stacking context */
- mix-blend-mode: overlay;
- opacity: 0.4;
- }
- svg#stroke {
- position: absolute;
- fill: none;
- stroke: $main_color;
- stroke-width: 1px;
- }
- }
- #buttons_container {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1;
- display: flex;
- align-items: center;
- margin: $global_margins;
- font-size: $UI_main_font_size;
- mix-blend-mode: multiply;
- flex-wrap: wrap;
- .mode {
- display: flex;
- align-items: center;
- justify-content: space-around;
- margin: 0;
- margin-right: $buttons_margin;
- padding: $buttons_padding;
- cursor: pointer;
- color: rgba(0, 0, 0, 0.5);
- transition: border 0.1s ease-out, color 0.1s ease-out, padding $animation_style;
- font-weight: 300;
- svg {
- height: $large_picto_size;
- .thick {
- transition: stroke-width $animation_style, fill $animation_style, stroke $animation_style;
- stroke-width: 0.8;
- stroke: $grey_inactive;
- }
- .thin {
- transition: stroke-width $animation_style, fill $animation_style, stroke $animation_style;
- stroke-width: 0.5;
- stroke: $grey_inactive;
- }
- .circle-fill {
- fill: $grey_inactive;
- }
- }
- .mode_container {
- overflow: hidden;
- width: auto;
- transition: max-width 0.4s ease-out, margin-left 0.4s ease-out, margin-right 0.4s ease-out;
- max-width: 0px;
- margin: $buttons_inner_margin;
- max-width: 200px;
- p {
- white-space: nowrap;
- height: fit-content;
- margin-bottom: 1.5px;
- }
- }
- }
- .mode.active {
- padding: $buttons_padding !important;
- font-weight: 400;
- color: $main_color;
- svg .thick {
- stroke-width: 1.2;
- stroke: $main_color;
- }
- svg .thin {
- stroke-width: 0.6;
- stroke: $main_color;
- }
- svg .circle-fill {
- fill: $main_color;
- }
- .mode_container {
- max-width: 200px !important;
- margin: $buttons_inner_margin !important;
- }
- }
- .mode:hover {
- padding: $buttons_padding !important;
- color: $grey_hover;
- svg .thick, svg .thin {
- stroke: $grey_hover;
- }
- svg .circle-fill {
- fill: $grey_hover;
- }
- .mode_container {
- max-width: 200px !important;
- margin: $buttons_inner_margin !important;
- }
- }
- .mode.collapsed {
- padding: $buttons_padding_collapsed;
- .mode_container {
- max-width: 0px;
- margin-left: 0px;
- margin-right: 0px;
- }
- }
- .mode:last-of-type {
- margin-right: 0;
- }
- }
- #global_nav {
- position: fixed;
- bottom: 0;
- left: 0;
- margin: $global_margins;
- z-index: 1;
- font-size: $UI_main_font_size;
- h1 {
- font-family: 'Ortica';
- font-size: 1.5em;
- margin: $main_title_margin;
- span {
- font-size: 1.9em;
- }
- }
- #menu {
- display: flex;
- align-items: center;
- #search {
- display: flex;
- align-items: center;
- input[type="search"] {
- height: $search_box_height;
- width: 10vw;
- padding-left: 13px;
- padding-right: 30px;
- padding-bottom: 1px;
- font-family: 'Public';
- font-weight: 300;
- border-radius: 20px;
- border: solid $grey_inactive $buttons_border_width;
- color: $grey_inactive;
- background-color: $bg_color;
- transition: color $animation_style;
- }
- input[type="search"]:hover {
- color: $grey_hover;
- }
- input[type="search"]:active {
- color: $main_color;
- }
- button {
- background: none;
- border: none;
- cursor: pointer;
- svg {
- margin-top: 5px;
- margin-left: $search_icon_offset;
- height: $medium_picto_size;
- fill: $grey_inactive;
- transition: fill $animation_style;
- }
- svg:hover {
- fill: $grey_hover;
- }
- }
- }
- .menu_item {
- font-weight: 300;
- color: $grey_inactive;
- display: flex;
- align-items: center;
- cursor: pointer;
- margin: 0 10px;
- padding-bottom: 2px;
- transition: color $animation_style;
- svg {
- width: $medium_picto_size;
- height: $medium_picto_size;
- margin-right: 3px;
- fill: $grey_inactive;;
- transition: fill $animation_style;
- }
- }
- .menu_item:hover {
- color: $grey_hover;
- svg {
- fill: $grey_hover;
- }
- }
- }
- }
- // //
- // smaller desktop //
- // //
- @media only screen and (max-width: 1440px) {
- #buttons_container, #global_nav {
- font-size: $UI_main_font_size--sm;
- }
- #buttons_container {
- .arrow svg {
- height: $large_picto_size--sm;
- }
- .mode {
- padding: $buttons_padding--sm;
- svg {
- height: $large_picto_size--sm;
- }
- .mode_container {
- margin: $buttons_inner_margin--sm;
- }
- }
- .mode.active {
- padding: $buttons_padding--sm !important;
- .mode_container {
- margin: $buttons_inner_margin--sm !important;
- }
- }
- .mode:hover {
- padding: $buttons_padding--sm !important;
- .mode_container {
- margin: $buttons_inner_margin--sm !important;
- }
- }
- .mode.collapsed {
- padding: $buttons_padding_collapsed--sm;
- }
- }
- #global_nav {
- h1 {
- margin: $main_title_margin--sm;
- }
- #menu {
- #search {
- input[type="search"] {
- height: $search_box_height--sm;
- font-size: $UI_main_font_size--sm;
- }
- button {
- svg {
- margin-left: $search_icon_offset--sm;
- width: $medium_picto_size--sm;
- }
- }
- }
- .menu_item {
- svg {
- width: $medium_picto_size--sm;
- height: $medium_picto_size--sm;
- }
- }
- }
- }
- }
|