Display: Add ternary color for learning path styling - refs BT#19044

pull/4017/head
Yannick Warnier 3 years ago
parent 7e3316a396
commit 7f197b3852
  1. 26
      assets/css/scorm.scss
  2. 8
      src/CoreBundle/Resources/views/LearnPath/view.html.twig
  3. 5
      tailwind.config.js

@ -433,30 +433,28 @@ body {
line-height: 35px; line-height: 35px;
text-align: center; text-align: center;
border-radius: 100%; border-radius: 100%;
background-color: #34495E;
font-size: 20px; font-size: 20px;
color: #FFF; @apply bg-ch-ternary text-ch-text-secondary;
} }
.icon-toolbar .fa:hover, .icon-toolbar .fa:hover,
.icon-toolbar .mdi:hover { .icon-toolbar .mdi:hover {
background-color: #000; @apply bg-ch-primary-light;
} }
.expand .fa, .expand .fa,
.expand .mdi { .expand .mdi {
background-color: #00829C; @apply bg-ch-ternary;
} }
.expand .fa:hover, .expand .fa:hover,
.expand .mdi:hover { .expand .mdi:hover {
background-color: #006A84; @apply bg-ch-primary-light text-ch-text-secondary;
color: #ffffff;
} }
.expand .fa:active, .expand .fa:focus, .expand .fa:active, .expand .fa:focus,
.expand .mdi:active, .expand .mdi:focus { .expand .mdi:active, .expand .mdi:focus {
color: #ffffff; @apply bg-ch-primary-light text-ch-text-secondary;
} }
#scorm-info .progress-bar { #scorm-info .progress-bar {
@ -491,14 +489,13 @@ body {
margin-top: 4px; margin-top: 4px;
padding: 2px; padding: 2px;
border-radius: 20px; border-radius: 20px;
background-color: #ffffff;
border: 1px solid #8dcbf3;
-webkit-transform: translate(-100%); -webkit-transform: translate(-100%);
-moz-transform: translate(-100%); -moz-transform: translate(-100%);
-transform: translate(-100%); -transform: translate(-100%);
-webkit-transition: all 0.4s ease-out; -webkit-transition: all 0.4s ease-out;
-moz-transition: all 0.4s ease-out; -moz-transition: all 0.4s ease-out;
transition: all 0.4s ease-out; transition: all 0.4s ease-out;
@apply border-2 border-ch-ternary-dark bg-ch-text-secondary;
} }
.c-menu-right .circle { .c-menu-right .circle {
opacity: 0; opacity: 0;
@ -507,7 +504,7 @@ body {
padding: 2px; padding: 2px;
border-radius: 20px; border-radius: 20px;
background-color: #ffffff; background-color: #ffffff;
border: 1px solid #8dcbf3; @apply border-2 border-ch-ternary-dark bg-ch-text-secondary;
} }
.c-menu-left .open.circle { .c-menu-left .open.circle {
@ -522,13 +519,13 @@ body {
.c-menu-left .circle a, .c-menu-right .circle a { .c-menu-left .circle a, .c-menu-right .circle a {
text-decoration: none; text-decoration: none;
color: #fff;
display: inline-block; display: inline-block;
height: 35px; height: 35px;
width: 35px; width: 35px;
line-height: 35px; line-height: 35px;
text-align: center; text-align: center;
border-radius: 100%; border-radius: 100%;
@apply text-ch-text-secondary;
} }
.c-menu-left .circle a:hover { .c-menu-left .circle a:hover {
@ -548,11 +545,14 @@ body {
padding: 7px; padding: 7px;
background: #ffffff; background: #ffffff;
font-size: 16px; font-size: 16px;
border: 1px solid #8dcbf3; @apply border-2 border-ch-ternary-dark;
} }
.menu-button:hover { .menu-button:hover {
background-color: #ffffff; @apply bg-ch-ternary-light text-ch-text-secondary;
}
.menu-button-selected {
@apply bg-ch-ternary text-ch-text-secondary;
} }
/* LP VIEW COLLAPSE */ /* LP VIEW COLLAPSE */

@ -236,13 +236,7 @@
$(function() { $(function() {
$('.menu-button').on('click', function() { $('.menu-button').on('click', function() {
$('.circle').toggleClass('open'); $('.circle').toggleClass('open');
if ($('.circle').hasClass('open')) { $('.menu-button').toggleClass('menu-button-selected');
$('.menu-button').css('background', '#00829C');
$('.menu-button').css('color', '#fff');
} else {
$('.menu-button').css('background', '#fff');
$('.menu-button').css('color', '#000');
}
}); });
if (/iPhone|iPod|iPad|Safari/.test(navigator.userAgent)) { if (/iPhone|iPod|iPad|Safari/.test(navigator.userAgent)) {
if (!/Chrome/.test(navigator.userAgent)) { if (!/Chrome/.test(navigator.userAgent)) {

@ -17,6 +17,11 @@ module.exports = {
'dark': '#570563', //default to '#ea5300', 'dark': '#570563', //default to '#ea5300',
'light': '#772583', //default to '#ff7913', 'light': '#772583', //default to '#ff7913',
}, },
'ch-ternary': {
DEFAULT: '#162A83',
'dark': '#031770',
'light': '#293A96',
},
'ch-text': { 'ch-text': {
DEFAULT: '#111827', DEFAULT: '#111827',
'primary': '#fff', 'primary': '#fff',

Loading…
Cancel
Save