update template y una actividad
This commit is contained in:
File diff suppressed because one or more lines are too long
Vendored
+8
File diff suppressed because one or more lines are too long
+441
@@ -0,0 +1,441 @@
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
line-height: 1.3;
|
||||
font-size: 18px;
|
||||
}
|
||||
body > header,
|
||||
body > footer {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
body > header .coursenav-btn-navigation,
|
||||
body > footer .coursenav-btn-navigation {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
body > header .coursenav-btn-navigation:disabled,
|
||||
body > footer .coursenav-btn-navigation:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
}
|
||||
body > main {
|
||||
flex: 1 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas {
|
||||
padding: 1em;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas-label {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#coursenav-navbar .navbar-brand img {
|
||||
object-fit: contain;
|
||||
aspect-ratio: 1/1;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.course-menu,
|
||||
.course-menu ul {
|
||||
list-style: none !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.course-menu .witem {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
}
|
||||
.course-menu .witem > span {
|
||||
margin-left: auto;
|
||||
}
|
||||
.course-menu .menu-item + .course-menu .menu-item {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.course-menu .coursenav-link {
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
user-select: none;
|
||||
}
|
||||
.course-menu .sub-ul {
|
||||
display: none;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.course-menu .sub-ul.open {
|
||||
display: block;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link {
|
||||
cursor: pointer;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link:hover {
|
||||
filter: invert(100%);
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link[data-coursenavvisited='false']::before {
|
||||
content: '\f023';
|
||||
font-family: 'Font Awesome 6 Pro';
|
||||
font-weight: lighter;
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link[data-coursenavvisited='true']::before {
|
||||
content: '\f00c';
|
||||
font-family: 'Font Awesome 6 Pro';
|
||||
font-weight: 900;
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: var(--bs-success);
|
||||
}
|
||||
.course-menu .toggle-icon {
|
||||
cursor: pointer;
|
||||
margin-left: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.controls-btn > svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.controls-btn > i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.controls-btn:focus {
|
||||
outline: 2px solid #ffa300;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.controls-btn .position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.controls-btn .position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.controls-btn .position-relative i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
}
|
||||
.navbar-toggler > svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.navbar-toggler > i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.navbar-toggler:focus {
|
||||
outline: 2px solid #ffa300;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.navbar-toggler .position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.navbar-toggler .position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.navbar-toggler .position-relative i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.disabled {
|
||||
pointer-events: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.text-white * {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page-sco {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card.flat {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.card.flat .card-body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.cursor {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wrap-course-adaptive {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
min-width: 100vw;
|
||||
min-height: 100vh;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.wrap-course-content {
|
||||
width: 1366px;
|
||||
height: 768px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
}
|
||||
|
||||
.footer-details {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
width: 100%;
|
||||
padding: 0% 0.5rem;
|
||||
}
|
||||
|
||||
.stepper-container {
|
||||
width: 80%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.stepper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
.stepper::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: #ddd;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 0;
|
||||
}
|
||||
.stepper::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
height: 4px;
|
||||
background: #4caf50;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 1;
|
||||
width: var(--pct, 0);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
.stepper .step {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #ddd;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease;
|
||||
}
|
||||
.stepper .step.completed {
|
||||
background: #4caf50;
|
||||
}
|
||||
.stepper .step.current {
|
||||
background: #4caf50;
|
||||
border: 4px solid #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
top: -4px;
|
||||
}
|
||||
.stepper .step.current::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: -2.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 1rem;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#wrap-course-content-navigation {
|
||||
padding: 0.5rem;
|
||||
border-radius: 30px !important;
|
||||
transform: translateY(-1rem);
|
||||
}
|
||||
#wrap-course-content-navigation button {
|
||||
margin-left: 0.33rem;
|
||||
margin-right: 0.33rem;
|
||||
padding: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
#wrap-course-paginator {
|
||||
justify-self: end;
|
||||
margin-left: auto;
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
padding: 0% 0.5rem;
|
||||
width: 120px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#wrap-course-controls {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#coursenav-main-content {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.stepper #step-movil {
|
||||
background: #4caf50;
|
||||
border: 4px solid #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
top: 12px;
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 4;
|
||||
}
|
||||
.stepper #step-movil::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: 1.9rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.8rem;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.coursenav-btn-navigation:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.offcanvas-backdrop {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pop_class {
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
padding: 0;
|
||||
border-radius: 1em;
|
||||
overflow: hidden;
|
||||
}
|
||||
.pop_class .swal2-html-container {
|
||||
padding: 0;
|
||||
}
|
||||
.pop_class .img-fit-pop {
|
||||
object-fit: cover;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.pop_class .swal2-close {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
h6 {
|
||||
color: #4c4c4c;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
+497
@@ -0,0 +1,497 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
// Variables
|
||||
$btn-size: 48px !default;
|
||||
$outline-color: #ffa300 !default;
|
||||
|
||||
// Global box-sizing
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
// Body layout
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Arial', sans-serif;
|
||||
line-height: 1.3;
|
||||
font-size: 18px;
|
||||
|
||||
> header,
|
||||
> footer {
|
||||
flex: 0 0 auto;
|
||||
.coursenav-btn-navigation {
|
||||
width: $btn-size;
|
||||
height: $btn-size;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
&:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
> main {
|
||||
flex: 1 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
#coursenav-offcanvas {
|
||||
padding: 1em;
|
||||
width: 50%;
|
||||
}
|
||||
#coursenav-offcanvas-label {
|
||||
user-select: none;
|
||||
}
|
||||
#coursenav-navbar {
|
||||
.navbar-brand img {
|
||||
object-fit: contain;
|
||||
aspect-ratio: 1 / 1;
|
||||
height: 45px;
|
||||
}
|
||||
}
|
||||
// Menu styles
|
||||
.course-menu,
|
||||
.course-menu ul {
|
||||
list-style: none !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.course-menu {
|
||||
.witem {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
> span {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
.menu-item {
|
||||
& + & {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
}
|
||||
.coursenav-link {
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
user-select: none;
|
||||
}
|
||||
.sub-ul {
|
||||
display: none;
|
||||
padding-left: 1rem;
|
||||
&.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.coursenav-link {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
filter: invert(100%);
|
||||
}
|
||||
&[data-coursenavvisited='false'] {
|
||||
&::before {
|
||||
content: '\f023'; // unicode de fa-check
|
||||
font-family: 'Font Awesome 6 Pro';
|
||||
font-weight: lighter; // solid
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
&[data-coursenavvisited='true'] {
|
||||
&::before {
|
||||
content: '\f00c'; // unicode de fa-check
|
||||
font-family: 'Font Awesome 6 Pro';
|
||||
font-weight: 900; // solid
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: var(--bs-success); // verde éxito (puedes cambiar)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.toggle-icon {
|
||||
cursor: pointer;
|
||||
margin-left: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
// Mixin for control buttons (audio & toggler)
|
||||
@mixin control-button {
|
||||
width: $btn-size;
|
||||
height: $btn-size;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
> svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
> i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
&:focus {
|
||||
outline: 2px solid $outline-color;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
// Apply mixin
|
||||
.controls-btn {
|
||||
@include control-button;
|
||||
// El contenedor interno debe ser relativo
|
||||
.position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// Asegúrate que el SVG ocupe todo el área
|
||||
.position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
// El <i> ahora sí es absoluto dentro de .position-relative
|
||||
.position-relative i {
|
||||
/* position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%); */
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.controls-btn {
|
||||
width: 55px;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.font-custom {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
@include control-button;
|
||||
.position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.position-relative i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
.disabled {
|
||||
pointer-events: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.text-white * {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page-sco {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.card.flat {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
|
||||
.card-body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
.cursor {
|
||||
cursor: pointer;
|
||||
}
|
||||
.wrap-course-adaptive {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
min-width: 100vw;
|
||||
min-height: 100vh;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.wrap-course-content {
|
||||
width: 1366px;
|
||||
height: 768px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
// Puedes agregar box-shadow o background si quieres
|
||||
}
|
||||
#coursenav-offcanvas {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
}
|
||||
.footer-details {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
width: 100%;
|
||||
padding: 0% 0.5rem;
|
||||
}
|
||||
|
||||
// Variables
|
||||
$color-bg: #433b3f !default;
|
||||
$color-line-bg: #ddd !default;
|
||||
$color-line-ac: #4caf50 !default;
|
||||
$color-white: #fff !default;
|
||||
|
||||
$step-size: 24px !default;
|
||||
$step-current-size: 32px !default;
|
||||
$step-border-width: 4px !default;
|
||||
|
||||
$transition-time: 0.3s !default;
|
||||
|
||||
.stepper-container {
|
||||
width: 80%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
// Stepper principal
|
||||
.stepper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 0;
|
||||
|
||||
// Línea de fondo
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: $color-line-bg;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
// Línea de progreso (width se asigna con --pct en JS)
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
height: 4px;
|
||||
background: $color-line-ac;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 1;
|
||||
width: var(--pct, 0);
|
||||
transition: width $transition-time ease;
|
||||
}
|
||||
|
||||
.step {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: $step-size;
|
||||
height: $step-size;
|
||||
background: $color-line-bg;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background $transition-time ease, width $transition-time ease, height $transition-time ease,
|
||||
top $transition-time ease;
|
||||
|
||||
// Completado
|
||||
&.completed {
|
||||
background: $color-line-ac;
|
||||
}
|
||||
|
||||
// Paso actual
|
||||
&.current {
|
||||
background: $color-line-ac;
|
||||
border: $step-border-width solid $color-white;
|
||||
width: $step-current-size;
|
||||
height: $step-current-size;
|
||||
// Elevar para centrar con el borde
|
||||
top: -(($step-current-size - $step-size) / 2);
|
||||
|
||||
// Etiqueta de porcentaje
|
||||
&::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: -2.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 1rem;
|
||||
color: $color-white;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#wrap-course-content-navigation {
|
||||
padding: 0.5rem;
|
||||
border-radius: 30px !important;
|
||||
border-bottom-left-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
/* transform: translateY(-1rem); */
|
||||
button {
|
||||
margin-left: 0.33rem;
|
||||
margin-right: 0.33rem;
|
||||
padding: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
#wrap-course-paginator {
|
||||
justify-self: end;
|
||||
margin-left: auto;
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
padding: 0% 0.5rem;
|
||||
width: 120px;
|
||||
justify-content: center;
|
||||
}
|
||||
#wrap-course-controls {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#coursenav-main-content {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.stepper {
|
||||
#step-movil {
|
||||
background: #4caf50;
|
||||
border: 4px solid #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
top: 12px;
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 4;
|
||||
}
|
||||
#step-movil::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: 1.9rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.8rem;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
.coursenav-btn-navigation:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
pointer-events: none;
|
||||
}
|
||||
.offcanvas-backdrop {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.pop_class {
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
padding: 0;
|
||||
border-radius: 1em;
|
||||
overflow: hidden;
|
||||
.swal2-html-container {
|
||||
padding: 0;
|
||||
}
|
||||
.img-fit-pop {
|
||||
object-fit: cover;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.swal2-close {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
h6 {
|
||||
color: #4c4c4c;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pop_html_style .swal2-html-container {
|
||||
padding: 0.5em;
|
||||
}
|
||||
+484
@@ -0,0 +1,484 @@
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Arial", sans-serif;
|
||||
line-height: 1.3;
|
||||
font-size: 18px;
|
||||
}
|
||||
body > header,
|
||||
body > footer {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
body > header .coursenav-btn-navigation,
|
||||
body > footer .coursenav-btn-navigation {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
body > header .coursenav-btn-navigation:disabled,
|
||||
body > footer .coursenav-btn-navigation:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
}
|
||||
body > main {
|
||||
flex: 1 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas {
|
||||
padding: 1em;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas-label {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#coursenav-navbar .navbar-brand img {
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
aspect-ratio: 1/1;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.course-menu,
|
||||
.course-menu ul {
|
||||
list-style: none !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.course-menu .witem {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
}
|
||||
.course-menu .witem > span {
|
||||
margin-left: auto;
|
||||
}
|
||||
.course-menu .menu-item + .course-menu .menu-item {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.course-menu .coursenav-link {
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.course-menu .sub-ul {
|
||||
display: none;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.course-menu .sub-ul.open {
|
||||
display: block;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link {
|
||||
cursor: pointer;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link:hover {
|
||||
filter: invert(100%);
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link[data-coursenavvisited=false]::before {
|
||||
content: "\f023";
|
||||
font-family: "Font Awesome 6 Pro";
|
||||
font-weight: lighter;
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
.course-menu .sub-ul .coursenav-link[data-coursenavvisited=true]::before {
|
||||
content: "\f00c";
|
||||
font-family: "Font Awesome 6 Pro";
|
||||
font-weight: 900;
|
||||
display: inline-block;
|
||||
margin-right: 0.5rem;
|
||||
color: var(--bs-success);
|
||||
}
|
||||
.course-menu .toggle-icon {
|
||||
cursor: pointer;
|
||||
margin-left: 0.5rem;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.controls-btn {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
}
|
||||
.controls-btn > svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.controls-btn > i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.controls-btn:focus {
|
||||
outline: 2px solid #ffa300;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.controls-btn .position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.controls-btn .position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.controls-btn .position-relative i {
|
||||
/* position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%); */
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.controls-btn {
|
||||
width: 55px;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.font-custom {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
}
|
||||
.navbar-toggler > svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.navbar-toggler > i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.navbar-toggler:focus {
|
||||
outline: 2px solid #ffa300;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.navbar-toggler .position-relative {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.navbar-toggler .position-relative svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.navbar-toggler .position-relative i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.disabled {
|
||||
pointer-events: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.text-white * {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page-sco {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card.flat {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.card.flat .card-body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.cursor {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wrap-course-adaptive {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
min-width: 100vw;
|
||||
min-height: 100vh;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.wrap-course-content {
|
||||
width: 1366px;
|
||||
height: 768px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#coursenav-offcanvas {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
}
|
||||
|
||||
.footer-details {
|
||||
border-top-right-radius: 30px !important;
|
||||
border-bottom-right-radius: 30px !important;
|
||||
width: 100%;
|
||||
padding: 0% 0.5rem;
|
||||
}
|
||||
|
||||
.stepper-container {
|
||||
width: 80%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.stepper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
.stepper::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: #ddd;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 0;
|
||||
}
|
||||
.stepper::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
height: 4px;
|
||||
background: #4caf50;
|
||||
transform: translateY(-50%);
|
||||
border-radius: 2px;
|
||||
z-index: 1;
|
||||
width: var(--pct, 0);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
.stepper .step {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #ddd;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease;
|
||||
}
|
||||
.stepper .step.completed {
|
||||
background: #4caf50;
|
||||
}
|
||||
.stepper .step.current {
|
||||
background: #4caf50;
|
||||
border: 4px solid #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
top: -4px;
|
||||
}
|
||||
.stepper .step.current::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: -2.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 1rem;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#wrap-course-content-navigation {
|
||||
padding: 0.5rem;
|
||||
border-radius: 30px !important;
|
||||
border-bottom-left-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
/* transform: translateY(-1rem); */
|
||||
}
|
||||
#wrap-course-content-navigation button {
|
||||
margin-left: 0.33rem;
|
||||
margin-right: 0.33rem;
|
||||
padding: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
#wrap-course-paginator {
|
||||
justify-self: end;
|
||||
margin-left: auto;
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
padding: 0% 0.5rem;
|
||||
width: 120px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#wrap-course-controls {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#coursenav-main-content {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.stepper #step-movil {
|
||||
background: #4caf50;
|
||||
border: 4px solid #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
top: 12px;
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 4;
|
||||
}
|
||||
.stepper #step-movil::before {
|
||||
content: attr(data-label);
|
||||
position: absolute;
|
||||
top: 1.9rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 0.8rem;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.coursenav-btn-navigation:disabled {
|
||||
cursor: not-allowed;
|
||||
filter: opacity(0.5);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.offcanvas-backdrop {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pop_class {
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
padding: 0;
|
||||
border-radius: 1em;
|
||||
overflow: hidden;
|
||||
}
|
||||
.pop_class .swal2-html-container {
|
||||
padding: 0;
|
||||
}
|
||||
.pop_class .img-fit-pop {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.pop_class .swal2-close {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
h6 {
|
||||
color: #4c4c4c;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pop_html_style .swal2-html-container {
|
||||
padding: 0.5em;
|
||||
}
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+13
File diff suppressed because one or more lines are too long
+12489
File diff suppressed because it is too large
Load Diff
Vendored
+6
File diff suppressed because one or more lines are too long
+107
@@ -0,0 +1,107 @@
|
||||
// Import Bootstrap functions, variables, and mixins
|
||||
@import '../bootstrap-5.2.3/scss/functions';
|
||||
@import '../bootstrap-5.2.3/scss/variables';
|
||||
@import '../bootstrap-5.2.3/scss/mixins';
|
||||
|
||||
// Definir colores personalizados
|
||||
$custom-colors: (
|
||||
'rosa-lavanda': #ede3ec,
|
||||
'lila-rosa': #d8c4d6,
|
||||
'verde-ceniza': #84a79c,
|
||||
'verde-oscuro': #105742,
|
||||
'verde-pino': #4c8071,
|
||||
'verde-claro': #d6e3da,
|
||||
'lila-claro': #905c8b,
|
||||
'morado-claro': #915c8c,
|
||||
'gris': #959595,
|
||||
);
|
||||
|
||||
// Colores base principales
|
||||
$primary: #72256b;
|
||||
$secondary: #8db497;
|
||||
|
||||
// Variaciones del primario - Escala de azules
|
||||
$primary-light: lighten($primary, 15%);
|
||||
$primary-lighter: lighten($primary, 30%);
|
||||
$primary-dark: darken($primary, 15%);
|
||||
$primary-darker: darken($primary, 25%);
|
||||
|
||||
// Variaciones del secundario - Coral
|
||||
$secondary-light: lighten($secondary, 10%);
|
||||
$secondary-lighter: lighten($secondary, 20%);
|
||||
$secondary-dark: darken($secondary, 10%);
|
||||
$secondary-darker: darken($secondary, 20%);
|
||||
|
||||
// Colores adicionales - Armonía azul/gris
|
||||
$success: #6cc04a; // Teal (mantenido para consistencia)
|
||||
$danger: #d4451d; // Rojo vibrante pero sofisticado
|
||||
$warning: #ff671b; // Ámbar en lugar de dorado
|
||||
$info: #3498db; // Azul brillante
|
||||
$light: #5b6770; // Gris muy claro
|
||||
$dark: #2c3e50; // Azul noche
|
||||
$muted: #7f8c8d; // Gris neutro
|
||||
$white: #ffffff; // Blanco puro
|
||||
|
||||
// Combinar colores en $theme-colors
|
||||
$theme-colors: map-merge(
|
||||
(
|
||||
'primary': $primary,
|
||||
'primary-light': $primary-light,
|
||||
'primary-lighter': $primary-lighter,
|
||||
'primary-dark': $primary-dark,
|
||||
'primary-darker': $primary-darker,
|
||||
'secondary': $secondary,
|
||||
'secondary-light': $secondary-light,
|
||||
'secondary-lighter': $secondary-lighter,
|
||||
'secondary-dark': $secondary-dark,
|
||||
'secondary-darker': $secondary-darker,
|
||||
'success': $success,
|
||||
'danger': $danger,
|
||||
'warning': $warning,
|
||||
'info': $info,
|
||||
'light': $light,
|
||||
'dark': $dark,
|
||||
'muted': $muted,
|
||||
'white': $white,
|
||||
),
|
||||
$custom-colors
|
||||
);
|
||||
|
||||
// Configuración de fondo y texto
|
||||
$body-bg: $white;
|
||||
$body-color: #515151; // Azul/gris oscuro para texto
|
||||
|
||||
// Configuración de Swiper - Actualizada a azules
|
||||
:root {
|
||||
--swiper-theme-color: $primary;
|
||||
--swiper-navigation-color: $primary;
|
||||
--swiper-pagination-color: $primary;
|
||||
--swiper-pagination-bullet-inactive-color: map-get($custom-colors, 'silver');
|
||||
}
|
||||
|
||||
.swiper {
|
||||
&-button-prev,
|
||||
&-button-next {
|
||||
&:hover {
|
||||
color: $primary-dark;
|
||||
background: rgba($light, 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
&-pagination-bullet-active {
|
||||
background: $primary;
|
||||
}
|
||||
|
||||
&-scrollbar-drag {
|
||||
background: $primary;
|
||||
}
|
||||
}
|
||||
$container-max-widths: (
|
||||
sm: 100%,
|
||||
md: 100%,
|
||||
lg: 100%,
|
||||
xl: 100%,
|
||||
xxl: 100%,
|
||||
);
|
||||
// Import Bootstrap components
|
||||
@import '../bootstrap-5.2.3/scss/bootstrap';
|
||||
+12452
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,195 @@
|
||||
|
||||
// Definición de colores principales
|
||||
:root {
|
||||
--color1: #47545d;
|
||||
--color2: #c9d0d3;
|
||||
}
|
||||
|
||||
// Estilos generales del timeline
|
||||
.main-timeline {
|
||||
&:after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.timeline {
|
||||
border-right: 10px solid var(--color1);
|
||||
width: 50%;
|
||||
padding: 10px 20px 10px 0;
|
||||
box-shadow: 10px 0 var(--color2);
|
||||
float: left;
|
||||
min-height: 160px;
|
||||
|
||||
&:last-child {
|
||||
min-height: 130px;
|
||||
}
|
||||
|
||||
&-content {
|
||||
text-align: center;
|
||||
display: block;
|
||||
position: relative;
|
||||
border-radius: 10px 10px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
content: "";
|
||||
background: var(--color2);
|
||||
width: 80px;
|
||||
height: 3px;
|
||||
transform: translateY(-50%);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: -120px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50%;
|
||||
right: -125px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.timeline-year {
|
||||
border-radius: 50%;
|
||||
transform: translateY(-50%);
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: -300px;
|
||||
|
||||
img {
|
||||
max-width: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
color: #fff;
|
||||
background: var(--color2);
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
padding: 10px 10px 9px;
|
||||
margin: 0;
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
letter-spacing: 1px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.timeline:nth-child(even) {
|
||||
float: right;
|
||||
border: none;
|
||||
border-left: 10px solid var(--color2);
|
||||
box-shadow: -10px 0 var(--color1);
|
||||
padding: 10px 0 10px 20px;
|
||||
margin: 0 0 0 10px;
|
||||
|
||||
.timeline-content {
|
||||
&:before {
|
||||
right: auto;
|
||||
left: -120px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: auto;
|
||||
left: -125px;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline-year {
|
||||
right: auto;
|
||||
left: -300px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Colores dinámicos según el índice
|
||||
@for $i from 1 through 5 {
|
||||
.main-timeline .timeline:nth-child(#{$i}) {
|
||||
--color1: var(--bs-#{nth(success naranja-1 vino secondary naranja-2 , $i)});
|
||||
--color2: color-mix(in srgb, var(--color1) 80%, black);
|
||||
}
|
||||
}
|
||||
|
||||
// Estilos responsive para móviles
|
||||
@media screen and (max-width: 767px) {
|
||||
.main-timeline {
|
||||
.timeline,
|
||||
.timeline:nth-child(even) {
|
||||
width: 100%;
|
||||
padding: 100px 0 20px 20px;
|
||||
margin: 0 0 0 10px;
|
||||
box-shadow: -10px 0 var(--color2);
|
||||
border: none;
|
||||
border-left: 10px solid var(--color1);
|
||||
float: none;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
&:before,
|
||||
&:after {
|
||||
top: -50px;
|
||||
left: -20px;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
width: 15px;
|
||||
right: auto;
|
||||
left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline-year,
|
||||
.timeline:nth-child(even) .timeline-year {
|
||||
transform: translateX(-50%);
|
||||
top: -85px;
|
||||
left: 50%;
|
||||
right: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-top: -73px;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline:nth-child(even) {
|
||||
float: right;
|
||||
border: none;
|
||||
border-left: 10px solid var(--color2);
|
||||
box-shadow: -10px 0 var(--color1);
|
||||
padding: 10px 0 10px 20px;
|
||||
margin: 0 0 0 10px;
|
||||
|
||||
.timeline-content {
|
||||
&:before {
|
||||
right: auto;
|
||||
left: -20px !important;
|
||||
}
|
||||
|
||||
&:after {
|
||||
width: 15px !important;
|
||||
right: auto !important;
|
||||
left: 15px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline-year {
|
||||
right: auto;
|
||||
left: -300px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
.number {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
font-size: 36px;
|
||||
background-color: #9aacb7;
|
||||
color: #fff;
|
||||
line-height: 50px;
|
||||
}
|
||||
|
||||
.timeline .row {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/* Para filas impares (1, 3, 5...) */
|
||||
|
||||
.timeline .col-6.col-md-4.text-md-start.text-center {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* Para filas pares (2, 4, 6...) */
|
||||
.timeline .row:nth-child(even) .col-lg-1 {
|
||||
order: 0;
|
||||
}
|
||||
|
||||
.timeline .row:nth-child(even) .col-6.col-md-4.text-md-end.text-center {
|
||||
order: 1;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.timeline .row .col-12.col-md-4.mt-4.mt-md-0 {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.timeline::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
background-color: #9aacb7;
|
||||
top: 5%;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
margin-left: -2px;
|
||||
height: 91%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.number::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 1px;
|
||||
background-color: #9aacb7;
|
||||
width: 400%;
|
||||
top: 50%;
|
||||
left: -150%;
|
||||
z-index: -1;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.timeline .row:nth-child(even) .col-lg-1,
|
||||
.timeline .row .col-12.col-md-4.mt-4.mt-md-0,
|
||||
.timeline .row:nth-child(even) .col-6.col-md-4.text-md-end.text-center {
|
||||
order: inherit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user