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

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

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

Loading…
Cancel
Save