crous-bfc: add initial theme (#89720)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Nicolas Roche 2024-04-09 22:20:40 +02:00
parent 845776da3d
commit 7f9a6e183f
5 changed files with 270 additions and 0 deletions

View File

@ -0,0 +1,169 @@
// Headers
#toplinks {
font-weight: 700;
}
@media screen and ($max-mobile-viewport) {
#logo a {
display: block;
height: 60px;
overflow: hidden;
padding-top: 6px;
}
#logo.has-logo a::before { height: 50px; }
}
@media screen and (max-width: $very-small-limit) {
#logo {
padding-left: 40px;
}
}
// Nav
#nav-wrapper {
div.gru-nav > ul {
margin: 0;
}
div.gru-nav > ul > li {
padding-top: 1.125rem;
padding-bottom: 1.125rem;
}
@media screen and ($min-desktop-viewport) {
#nav-wrapper {
border-top: .1rem solid #f3f3f5;
}
}
}
// Shadow bellow hearders or nav
@media screen and ($min-desktop-viewport) {
#nav-wrapper {
border-top: .1rem solid #f3f3f5;
box-shadow: .4rem .6rem .9rem rgba(0,0,0,.22);
}
}
@media screen and ($max-mobile-viewport) {
#header-wrapper {
box-shadow: .4rem .6rem .9rem rgba(0,0,0,.22);
}
}
#main-content-wrapper {
margin-top: 0.65rem;
}
// Text cell
.textcell {
h3 {
color: black;
font-size: $fz-h3;
font-weight: 700;
margin-block-end: 1.6rem;
border-bottom: .2rem solid $parent-color;
padding-block-end: 1.4rem;
}
strong {
color: $parent-color;
}
}
// WCS simple demand cell
.wcs-form-cell {
div div {
padding: 1rem;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
text-decoration-color: $primary-color;
}
}
}
}
// Links
div#rub_service div.category ul > li > a,
div.links-list ul > li > a,
div.menucell ul > li > a,
div.wcsformcell > li > a,
div.categoriescell ul > li > a,
div.wcsformsofcategorycell ul > li > a,
div.wcscurrentdraftscell ul > li > a,
div.wcscurrentformscell ul > li > a {
&:hover {
text-decoration: underline;
text-decoration-color: $primary-color;
}
}
// Buttons
.gru-content button.cancel-button,
div.buttons .cancel-button button,
.gru-content button.submit-button,
div.buttons .submit-button button,
div.buttons .previous-button button,
a.pk-button {
padding: .27rem .86rem;
font-size: $nav-font-size;
font-weight: 700;
color: $parent-color;
}
// Footer
#footer-wrapper {
border-top: .6rem solid $primary-color;
a {
font-weight: 700;
text-decoration: none;
}
}
// WCS form
div#rub_service {
background: white;
border-radius: 1rem;
}
.form-content--title {
background: white;
border: 1px solid #ccc;
border-radius: 1rem;
color: black;
}
// WCS steps
.form-content--sidebox {
background: white;
border: 1px solid #ccc;
border-radius: 1rem;
border-radius: 1rem;
box-shadow: .4rem .6rem .9rem rgba(0,0,0,.22);
margin-bottom: 0.65rem;
}
.wcs-step {
font-weight: 700;
border-radius: 0;
@media screen and ($min-desktop-viewport) {
border-left: 3px solid #b2b2b2;
border-bottom: none;
}
&.current {
@media screen and ($min-desktop-viewport) {
border-left: 3px solid #e01020;
border-bottom: none;
}
}
}
// Additionnals CSS classes to set parent color
$colors:
red $primary-color,
peach #E28B76,
greenwater #34C4B5,
lilablue #7AB1E8,
orange #FF732C,
green #34CB6A,
purple #CE70CC,
yellow #C3992A,
grey #e8e8e8;
@each $name, $color in $colors {
.parent-color-#{$name} {
--parent-color: #{$color};
}
}

View File

@ -0,0 +1,82 @@
@import '../includes/fonts/marianne';
// Crous: 1.6rem == 16px
// EO: 1rem == 16px
// eo_rem = crous_rem / 1.6
// eo_rem = crous_px / 16
$fz-h2: 1.75rem;
$fz-h3: 1.75rem;
$primary-color: #e01020;
// get color from parent-color-XXX additionnals CSS classe
$parent-color: var(--parent-color, $primary-color);
// Généralités
$body-background: #e8e8e8;
$font-color: black;
$link-color: black;
$font-family: Marianne, Arial, sans-serif;
$width: 1200px;
$header-background-color: white;
$header-logo-size: 100px 100px;
$footer-background: #f3f3f5;
$footer-color: black;
$cell-border-radius: 1rem;
$columns-gutter: 30px;
$border-radius: 4px;
// Titres
$title-background: none;
$title-color: $parent-color;
$title-font-size: $fz-h2;
$title-weight: 700;
// Navigation
$nav-background: white;
$nav-full-width-background: true;
$nav-color: black;
$nav-item-selected-mode: bottom-border;
$nav-item-selected-border: 2px solid $primary-color;
$nav-font-size: 1.1rem;
$nav-submenu-background: #eee;
$nav-submenu-color: #333;
// Menu mobile
$nav-mobile-mode: hamburger;
$responsive-menu: left-to-right;
$nav-button-background: white;
$nav-mobile-menu-background: #eee;
$nav-mobile-menu-item-color: black;
$nav-mobile-menu-item-hover-background: $nav-mobile-menu-background;
$nav-mobile-menu-item-hover-color: $nav-mobile-menu-item-color;
$nav-button-color: black;
$nav-border-color: black;
// Cellule démarches d'un catégorie
$cell-image-position: top;
$cell-image-padding: none;
// Boutons
$button-background: white;
$button-color: $primary-color;
$button-hover-background: $parent-color;
$button-hover-color: white;
$button-border: .17rem solid $parent-color;
$button-border-radius: 2.58rem;
$button-focus-outline: none;
// Retour en haut
$back-top-display: block;
$back-top-icon-character: "\f139";
$back-top-icon-size: 1rem;
// Formulaires
$widget-focus-border: 2px solid black;
$widget-focus-outline: 2px solid black;
$button-focus-outline-offset: 1px;
// WCS, étapes
$wcs-step-color: #b2b2b2;
$wcs-step-border-bottom: 3px solid #b2b2b2;
$wcs-step-current-color: black;
$wcs-step-current-border-bottom: 3px solid #e01020;
$wcs-steps-spacing: 0;

View File

@ -0,0 +1,14 @@
{
"label": "Crous BFC",
"variables": {
"theme_color": "#e01020",
"favicon": "crous-bfc/img/favicon.png"
},
"settings": {
"combo": {
"COMBO_ASSET_SLOTS.update": {
"header:logo": { "label": "Têtière : logo" }
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,5 @@
@charset "UTF-8";
@import 'vars';
@import '../includes/publik';
@import 'custom';