Skip to content

Instantly share code, notes, and snippets.

@pigeonfresh
Last active July 17, 2020 14:33
Show Gist options
  • Save pigeonfresh/2e530fe22d6010f1cf195632f1300371 to your computer and use it in GitHub Desktop.
Save pigeonfresh/2e530fe22d6010f1cf195632f1300371 to your computer and use it in GitHub Desktop.
.booking-content-wrapper {
position: relative;
min-height: 15rem;
padding: 0 0 3rem;
@include theme($laColeccion $grandFiestaAmericana) {
color: #fff;
&::before {
position: absolute;
top: -1rem;
bottom: 0;
left: auto;
right: 0;
width: 100vw;
content: '';
}
}
@include theme($laColeccion) {
&::before {
background: $primary-theme-color;
}
}
@include theme($grandFiestaAmericana) {
&::before {
background: $secondary-theme-color;
}
}
}
@function contains($list, $item) {
@return not not index($list, $item);
}
@mixin theme($themeList) {
@if contains($themeList, $currentTheme) {
@content;
}
}
$fiestaAmericana: 'fiesta-americana';
$laColeccion: 'la-coleccion';
$grandFiestaAmericana: 'grand-fiesta-americana';
$liveAqua: 'live-aqua';
$fiestaRewards: 'fiesta-awards';
$viaja: 'viaja';
$fiestaInn: 'fiesta-inn';
$gamma: 'gamma';
$one: 'one';
// SCSS variables
$pathAsset: '~app';
$pathFont: 'font';
$max-width-full: 166rem;
$max-width: 136.6rem;
$z-index: default, content, destination-module, header, brand-selector, popup;
@import 'theme-settings';
// @import 'theme/live-aqua';
// @import 'theme/fiesta-americana';
// @import 'theme/grand-fiesta-americana';
// @import 'theme/la-coleccion';
@import 'theme/viaja';
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
$colorList: #0096ff #3c457d #f8cf40 #474f57;
$fontList: 'Avenir Next', 'Roboto', 'Roboto';
$font-primary: nth($fontList, 1), sans-serif;
$font-secondary: nth($fontList, 2), sans-serif;
$font-base: nth($fontList, 3), sans-serif;
$primary-theme-color: nth($colorList, 1);
$primary-theme-color-light: nth($colorList, 2);
$secondary-theme-color: nth($colorList, 3);
$error-color: nth($colorList, 4);
$color-dark-gray: #666;
$currentTheme: $viaja;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment