@vidal-community/vidal-web-components
Version:
Vidal Web Components
525 lines (465 loc) • 11.2 kB
JavaScript
import { css } from 'lit';
export const vidalRecoClicStyles = css `
:host {
background-color: f2f2f2;
max-height: calc(100% - 16px);
position: relative;
padding: 8px;
display: flex;
font-family: 'Liberation Sans', Arial, Helvetica, sans-serif;
}
.reco-container {
position: relative;
height: 95vh;
width: 100%;
max-height: 95vh;
overflow: hidden;
display: grid;
grid-template-columns: 47% 3% 47%;
grid-template-rows: 1fr;
grid-column-gap: 5px;
grid-row-gap: 0px;
border-radius: 8px;
}
.vidal-header {
position: absolute;
top: 0;
width: 100%;
height: 50px;
display: flex;
justify-content: flex-start;
align-items: center;
border-radius: 8px;
background: #d40202;
color: #fff;
font-size: 2em;
}
.vidal-header .vidal-titles {
display: flex;
align-items: center;
flex-grow: 2;
height: 100%;
position: relative;
}
.vidal-header .vidal-titles span {
height: 100%;
}
.vidal-header .vidal-titles > span {
display: flex;
align-items: center;
margin-left: 12px;
}
.vidal-header .vidal-titles .vidal-logo-text {
position: relative;
}
.vidal-header .vidal-titles .reco-name {
font-size: 0.6em;
margin-top: 4px;
}
.vidal-header .toc-suggestion {
flex-grow: 1;
display: flex;
justify-content: flex-end;
align-items: baseline;
flex-direction: row;
}
.suggest-panel {
display: flex;
justify-content: center;
align-items: center;
background-color: #434343;
margin-right: 34px;
font-size: 0.45em;
padding: 8px 20px;
border-radius: 20px;
font-weight: bold;
cursor: pointer;
}
.left,
.right {
position: relative;
max-height: 100%;
margin-top: 50px;
overflow: auto;
padding: 12px;
}
.right {
box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.35);
border-radius: 25px;
margin-top: 65px;
margin-bottom: 12px;
grid-column: 3;
overflow-x: hidden;
background: white;
}
.tabs-container {
position: relative;
background: transparent;
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
align-items: flex-end;
align-self: flex-start;
margin-left: 5%;
border-radius: 12px 12px 0 0;
font-weight: bold;
}
.tab {
margin-left: -8px;
height: 20px;
border-radius: 12px 12px 0 0;
background: #fff;
flex: 0 1 auto;
align-self: auto;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
padding: 4px 12px 4px 12px;
font-size: 12.8px;
box-shadow: inset 0px 8px 7px -3px rgba(0, 0, 0, 0.18);
color: #999999;
}
.tab.active {
border-radius: 12px 12px 0 0;
z-index: 1;
background-color: #434343;
color: white;
cursor: pointer;
}
.reco vidal-reco-clic-decision-tree {
width: 100%;
height: 100%;
}
.reco-container .reco .not-first {
border: none;
}
.decision-tree {
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
align-items: center;
}
.tree-container {
position: relative;
overflow: auto;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: flex-start;
box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.35);
border-radius: 25px;
padding-top: 12px;
padding-bottom: 12px;
background: white;
}
.reco .spe {
cursor: pointer;
}
.reco .tab-link.title {
background: #fff;
margin: 10px 5px 5px 5px;
border-radius: 20px;
flex: 0 1 auto;
align-self: auto;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
width: fit-content;
min-width: 40%;
padding: 4px 12px 4px 12px;
font-size: 1.5em;
box-shadow: inset 0px 0px 6px 0px #000000;
color: #999999;
}
.reco .active.tab-link.title {
color: #fff;
background-color: #434343;
box-shadow: none;
}
.reco .moved-item .title {
color: black;
font-size: 16px;
margin-bottom: 0.25em;
}
.reco .moved-item .content-subitems .title {
color: #0066f0;
font-size: 14px;
margin-bottom: 0;
}
.reco .right .comment {
margin-top: 8px;
}
.lstspe {
max-height: 0;
overflow: hidden;
transition: max-height 500ms ease-in;
}
.rotating-arrow {
width: 0px;
height: 0px;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
border-bottom: 8px solid rgb(0, 100, 0);
margin-right: 8px;
transform: rotate(90deg);
transition: transform 500ms ease-in;
}
.dci {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
margin-bottom: 8px;
font-size: 1.2em;
cursor: pointer;
}
.grad-modal {
display: none;
position: absolute;
z-index: 2;
left: 5%;
top: 7%;
width: 90%;
height: 80%;
background: white;
border: #c0273e 2px solid;
border-radius: 8px;
overflow: auto;
box-shadow:
0 14px 28px rgba(0, 0, 0, 0.25),
0 10px 10px rgba(0, 0, 0, 0.22);
}
.grad-modal .modal-header {
position: absolute;
top: 0px;
background: rgb(212, 2, 2);
height: 50px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
color: white;
width: 100%;
font-size: 2em;
font-weight: bold;
}
.grad-modal .grad-content {
padding: 58px 12px 12px 12px;
overflow: auto;
height: calc(100% - 70px);
}
.grad-modal .modal-header .modal-title {
padding-left: 12px;
}
.grad-modal .modal-header .close-button {
padding-right: 12px;
cursor: pointer;
}
.suggestion-modal {
display: none;
position: absolute;
z-index: 2;
left: 25%;
top: 20%;
width: 50%;
background: white;
border: #c0273e 2px solid;
border-radius: 8px;
overflow: auto;
box-shadow:
0 14px 28px rgba(0, 0, 0, 0.25),
0 10px 10px rgba(0, 0, 0, 0.22);
}
.suggestion-modal > .modal-header {
top: 0px;
background: rgb(212, 2, 2);
height: 50px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
color: white;
width: 100%;
font-size: 2em;
font-weight: bold;
}
.suggestion-modal > .suggestion-content {
padding: 12px 12px 12px 12px;
}
.suggestion-modal > .modal-header > .modal-title {
padding-left: 12px;
}
.suggestion-modal > .modal-header > .close-button {
padding-right: 12px;
cursor: pointer;
}
.suggestion-modal .reco.suggestion {
font-size: 14px;
}
.suggestion-modal .reco.suggestion > .link {
font-weight: bold;
}
.suggestion-modal .reco.suggestion > .link > .mailTo {
color: blue;
}
.suggestion-modal .reco.suggestion > .link > img {
position: relative;
top: -6px;
}
.suggestion-modal .reco.suggestion .policy {
text-decoration: underline;
color: #7d889a;
font-weight: 700;
}
.suggestion-modal .reco.suggestion > .link {
margin: 25px 0;
}
.suggestion-modal .reco.suggestion > p:not(.link) {
margin: 5px 0;
color: #7d889a;
}
.domain-tree-modal {
display: none;
position: absolute;
z-index: 2;
left: 5%;
top: 7%;
width: 90%;
height: 80%;
background: white;
border: #c0273e 2px solid;
border-radius: 8px;
overflow: auto;
box-shadow:
0 14px 28px rgba(0, 0, 0, 0.25),
0 10px 10px rgba(0, 0, 0, 0.22);
}
.domain-tree-modal .modal-header {
position: absolute;
top: 0px;
background: linear-gradient(
171deg,
rgb(192, 39, 62) 0px,
rgb(254, 43, 106) 100%
)
0px 0px no-repeat padding-box padding-box transparent;
height: 50px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
color: white;
width: 100%;
font-size: 2em;
font-weight: bold;
}
.domain-tree-modal .domain-tree-content {
padding: 58px 12px 12px 12px;
overflow: auto;
height: calc(100% - 70px);
}
.domain-tree-modal .modal-header .modal-title {
padding-left: 12px;
}
.domain-tree-modal .modal-header .close-button {
padding-right: 12px;
cursor: pointer;
}
.reco.grades {
margin-bottom: 12px;
}
.reco.grades .titlibre {
padding-top: 8px;
}
.tree-wrapper {
width: 96%;
overflow: auto;
height: 100%;
}
.domain-tree-wrapper {
z-index: 2;
display: flex;
position: absolute;
top: 60px;
right: calc(100% - 54px);
width: fit-content;
height: 50px;
border-width: 1px 1px 1px 0px;
border-color: #c0273e;
border-style: solid;
border-radius: 0 10px 10px 0;
background: white;
}
.open-tree {
justify-self: flex-end;
position: relative;
display: flex;
align-items: center;
padding-left: 12px;
margin-right: 8px;
}
.open-tree button {
background-color: #fff;
color: #c0273e;
font-size: 1em;
border: none;
border-radius: 4px;
cursor: pointer;
width: 38px;
height: 38px;
background-size: contain;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSotHewg4pChOlkQFXHUKhShQqgVWnUwufQLmhiSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxc3NSdJES/5cUWsR4cNyPd/ced+8AoVFlmtU1Bmi6bWZSSTGXXxFDrwgjgl5EEZKZZcxKUhq+4+seAb7eJXiW/7k/R0QtWAwIiMQzzDBt4nXiqU3b4LxPHGNlWSU+Jx416YLEj1xXPH7jXHJZ4JkxM5uZI44Ri6UOVjqYlU2NeJI4rmo65Qs5j1XOW5y1ao217slfGC7oy0tcpzmEFBawCAkiFNRQQRU2ErTqpFjI0H7Sxz/o+iVyKeSqgJFjHhvQILt+8D/43a1VnBj3ksJJoPvFcT6GgdAu0Kw7zvex4zRPgOAzcKW3/RsNYPqT9Hpbix8B0W3g4rqtKXvA5Q4w8GTIpuxKQZpCsQi8n9E35YH+W6Bv1euttY/TByBLXaVvgINDYKRE2Ws+7+7p7O3fM63+fgD433J2ZwRirAAAAAZiS0dEAOcAKAAoYFwfEgAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB+UMDQkTAj33DnwAAAA9SURBVFjDY2AYBaNgpANGGOOAut1/elrscPMQIwMDAwPTQIfAqANGwSgYLQdGHTAKRsFoOTDqgFEwCkYBAKvsDBbSeNI7AAAAAElFTkSuQmCC);
}
@keyframes slide-out {
0% {
right: calc(100% - 54px);
height: 50px;
}
100% {
left: 0px;
height: fit-content;
}
}
@keyframes slide-in {
0% {
left: 0px;
height: fit-content;
}
100% {
right: calc(100% - 54px);
height: 50px;
}
}
.toc-open-panel-button {
font-size: 0.45em;
padding: 8px 20px;
border-radius: 20px;
background-color: rgb(255, 255, 255);
cursor: pointer;
box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 6px -3px inset;
font-weight: bold;
color: black;
align-items: center;
margin-right: 8px;
}
.reco-selector-button {
font-size: 0.45em;
padding: 8px 20px;
border-radius: 20px;
background-color: rgb(255, 255, 255);
cursor: pointer;
box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 6px -3px inset;
font-weight: bold;
color: black;
align-items: center;
margin-right: 8px;
}
.toggle-reco-selector {
cursor: pointer;
}
`;
//# sourceMappingURL=vidal-reco-clic-styles.js.map