[MTELEANSA-6] Ans : set up updated theme

This commit is contained in:
Daniel Muyshond 2020-10-07 11:15:08 +02:00
parent 11a38ba174
commit 01c616a695
11 changed files with 172 additions and 62 deletions

49
static/ans/_custom.scss Normal file
View File

@ -0,0 +1,49 @@
@charset "UTF-8";
/* Custom selection color because that can be done and it's cool */
::selection {
color: white;
background-color: $primary-color;
}
/* darker cell links hover for better contrast/accessibility */
div#account-management ul > li > a:hover::after,
div.wcsformsofcategorycell ul > li > a:hover::after,
div.wcscurrentdraftscell ul > li > a:hover::after,
div.wcscurrentformscell ul > li > a:hover::after {
background: $secondary-color;
}
/* remove annoying border I can't remove with EO vars at the moment */
div.links-list ul > li:not(:last-child) {
border-bottom: 0;
}
/* logo adjustmts */
h1#logo a img {
max-height: 140px;
}
@media screen and (max-width: 320px) {
h1#logo a img {
max-height: 90px;
}
}
@media screen and (max-width: 768px) {
h1#logo a {
margin-top: 0;
}
}
/* center "Code de suivi" title */
div#tracking-code h3 {
padding: 0;
color: $secondary-color;
}

View File

@ -0,0 +1,31 @@
// Steps
$form-sidebar-position: top; // possible values are: left, right, top
$steps-background: transparent;
$wcs-steps-spacing: 0.30rem !default; // half of default 0.7rem used in publik
$wcs-step-color: white !default; // color for default marker & label
$wcs-step-current-color: white !default;
$wcs-step-background: darken($primary-color, 12%) !default;
$wcs-step-current-background: $primary-color !default;
$wcs-step-border-bottom: 1px solid $wcs-step-color !default;
$wcs-step-current-border-bottom: none;
@if ($wcs-step-border-bottom == none) {
$wcs-step-current-border-bottom: none;
}
// Step option
$wsc-step-before-piled: false !default;
// marker
$wcs-step-marker-color: $wcs-step-color !default;
$wcs-step-current-marker-color: $wcs-step-current-color !default;
$wcs-step-marker-background: $wcs-step-background !default;
$wcs-step-current-marker-background: $wcs-step-current-background !default;
// marker options
$wcs-step-marker-size: 2.1em !default;
$wcs-step-current-marker-enlarge: 1.2 !default;
$wcs-step-marker-type: square; // square || tied || disc || disc tied
$wcs-step-marker-tie-color: #F2F2F2 !default;
$wcs-step-marker-tie-width: 5px !default;
$wcs-step-marker-background-type: gradient; // solid || gradien
// Label
$wcs-step-current-label-color: $primary-color !default;

74
static/ans/_vars.scss Normal file
View File

@ -0,0 +1,74 @@
@charset "UTF-8";
/*STYLE*/
$primary-color: #706458;
$secondary-color: #665b51;
$width: 1200px;
$mobile-limit: 800px;
$font-size: 16px !default;
$button-color: white;
$cell-entry-hover-effect: left-to-right;
$theme2019: true;
$link-color: $primary-color;
$font-family: "Open Sans";
$border-radius: 3px;
/*BASKET*/
/*CELL*/
$cell-border: 0px;
$cell-entry-hover-background: $secondary-color;
$cell-title-color: $secondary-color;
/*FORM-BUTTON*/
$button-hover-background-color: $secondary-color;
$button-background: $primary-color;
/*FOOTER*/
$footer-background-color: hsl( 0, 0%, 19%);
$footer-text-color: hsl(0, 0, 84%);
$footer-hover-text-color: hsl(0, 0, 100%);
/*HEADER*/
$header-banner: none;
$header-banner-image: false;
$header-banner-height: auto;
$header-logo: None;
$header-logo-margin: 1.7em 0 0 0.55em !default;
$header-logo-padding: 0;
$toplinks-border: 0;
$toplinks-radius: 0;
$toplinks-shadow: none;
/*LOGIN*/
/*MENU*/
$nav-background: #F2F2F2;
$nav-color: #333;
$nav-active-color: $primary-color;
$nav-item-selected-color: #FFF;
$nav-text-uppercase: uppercase;
/*MENU RESPONSIVE*/
$nav-button-color: #FFF;
$nav-menu-color: $primary-color;
/*PWA*/
$nav-mobile-bottom-bar-height: 75px;
$nav-mobile-bottom-bar-background: $primary-color;
$nav-mobile-bottom-bar-color: #FFF;
$nav-mobile-bottom-bar-item-hover-background: $primary-color;
/*RESPONSIVE*/
/*SHARE*/
$hidden-description: false;
/*TITLE*/
$title-color: #525252;
$title-padding: 1em 0em 1em 0.8em;
$title-weight: 600;

View File

@ -2,6 +2,8 @@
"label": "Ans",
"variables": {
"no_extra_js": false,
"theme_color": "#DBCCBC"
"pwa_display": "standalone",
"theme_color": "#706458",
"favicon": "ans/images/favicon.ico"
}
}
}

View File

@ -1,3 +1,5 @@
$(function() {
$.getScript('/static/imio/common.js', function() { });
});
$.getScript('/static/imio/common.js', function() {
});
}); /* end */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
static/ans/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,70 +1,22 @@
@charset "UTF-8";
$primary-color: #DBCCBC;
$title-color: black;
@import 'vars';
$button-color: $title-color; // default value : $title-color
$button-background:$primary-color; // default value : $primary-color
$button-hover-color: $button-background; // default value : $button-background
$button-hover-background-color: #706458;
$width: 90%; // E-Guichet width.
$mobile-limit: 800px; // Responsive mobile limit.
$font-size: 13px !default; // Default font size.
$font-family: sans-serif !default;
$border-radius: 3px;
$cell-entry-hover-effect: left-to-right;
$title-widget-color: $title-color;
$print-register-draft-button: true;
// Work only if form have an activated following code.
// if not : will be ignore.
/*HEADER*/
$header-logo: None;
$header-banner: url("images/banner.jpg");
$header-banner-width: 1920px; // default : banner width is equal to site width.
$header-banner-height: 214px;
/*NAVIGATION MENU*/
$nav-background: $primary-color; // #e5e5e5; // Default value : $primary-color
$nav-color: $title-color; // menu : text color
$nav-active-color: transparent;
$nav-item-selected-color: $title-color; // menu selected text color
$nav-item-selected-background-color: $button-hover-background-color;
/*BASKET*/
$basket-button-background-color: $button-background;
$basket-button-text-color: $button-color;
$basket-button-background-color-hover: $basket-button-text-color;
$basket-button-text-color-hover: $basket-button-background-color;
$delete-from-basket-color: $basket-button-background-color;
/*FOOTER*/
$footer-text-color: #676767;
$footer-hover-text-color: #333333;
$footer-background-color: $primary-color; // #cccccc; // Default value : $primary-color
$highlight-text-color: $nav-item-selected-background-color; // Sample : in Profile : highlight login method title.
/*IMIO SHARE : Affichage du message de connexion au portail agent*/
$a_portal_agent_background: None;
$a_portal_agent_color: black;
$a_portal_agent_top: 30px;
$a_portal_agent_right: 6%;
$a_portal_agent_border: None;
/*end IMIO SHARE*/
@import '../imio/steps-config';
@import 'steps-config';
@import '../../publik-base-theme/static/includes/publik';
@import '../../publik-base-theme/static/includes/fonts/opensans';
@import '../imio/form-buttons';
@import '../imio/header';
@import '../imio/menu';
@import '../imio/login';
@import '../imio/basket';
@import '../imio/basketv2';
@import '../imio/footer';
@import '../imio/responsive';
@import '../imio/share';
@import '../imio/extra';
@import '../imio/share';
@import '../imio/cells';
@import '../imio/responsive';
@import 'custom';