Better CSS
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 34s

This commit is contained in:
2024-12-17 22:03:47 +01:00
parent b4c673bdc4
commit 8d9f714701
60 changed files with 13392 additions and 105 deletions

View File

@@ -0,0 +1,223 @@
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
// Vars.
/// Breakpoints.
/// @var {list}
$breakpoints: () !global;
// Mixins.
/// Sets breakpoints.
/// @param {map} $x Breakpoints.
@mixin breakpoints($x: ()) {
$breakpoints: $x !global;
}
/// Wraps @content in a @media block targeting a specific orientation.
/// @param {string} $orientation Orientation.
@mixin orientation($orientation) {
@media screen and (orientation: #{$orientation}) {
@content;
}
}
/// Wraps @content in a @media block using a given query.
/// @param {string} $query Query.
@mixin breakpoint($query: null) {
$breakpoint: null;
$op: null;
$media: null;
// Determine operator, breakpoint.
// Greater than or equal.
@if (str-slice($query, 0, 2) == '>=') {
$op: 'gte';
$breakpoint: str-slice($query, 3);
}
// Less than or equal.
@elseif (str-slice($query, 0, 2) == '<=') {
$op: 'lte';
$breakpoint: str-slice($query, 3);
}
// Greater than.
@elseif (str-slice($query, 0, 1) == '>') {
$op: 'gt';
$breakpoint: str-slice($query, 2);
}
// Less than.
@elseif (str-slice($query, 0, 1) == '<') {
$op: 'lt';
$breakpoint: str-slice($query, 2);
}
// Not.
@elseif (str-slice($query, 0, 1) == '!') {
$op: 'not';
$breakpoint: str-slice($query, 2);
}
// Equal.
@else {
$op: 'eq';
$breakpoint: $query;
}
// Build media.
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
$a: map-get($breakpoints, $breakpoint);
// Range.
@if (type-of($a) == 'list') {
$x: nth($a, 1);
$y: nth($a, 2);
// Max only.
@if ($x == null) {
// Greater than or equal (>= 0 / anything)
@if ($op == 'gte') {
$media: 'screen';
}
// Less than or equal (<= y)
@elseif ($op == 'lte') {
$media: 'screen and (max-width: ' + $y + ')';
}
// Greater than (> y)
@elseif ($op == 'gt') {
$media: 'screen and (min-width: ' + ($y + 1) + ')';
}
// Less than (< 0 / invalid)
@elseif ($op == 'lt') {
$media: 'screen and (max-width: -1px)';
}
// Not (> y)
@elseif ($op == 'not') {
$media: 'screen and (min-width: ' + ($y + 1) + ')';
}
// Equal (<= y)
@else {
$media: 'screen and (max-width: ' + $y + ')';
}
}
// Min only.
@else if ($y == null) {
// Greater than or equal (>= x)
@if ($op == 'gte') {
$media: 'screen and (min-width: ' + $x + ')';
}
// Less than or equal (<= inf / anything)
@elseif ($op == 'lte') {
$media: 'screen';
}
// Greater than (> inf / invalid)
@elseif ($op == 'gt') {
$media: 'screen and (max-width: -1px)';
}
// Less than (< x)
@elseif ($op == 'lt') {
$media: 'screen and (max-width: ' + ($x - 1) + ')';
}
// Not (< x)
@elseif ($op == 'not') {
$media: 'screen and (max-width: ' + ($x - 1) + ')';
}
// Equal (>= x)
@else {
$media: 'screen and (min-width: ' + $x + ')';
}
}
// Min and max.
@else {
// Greater than or equal (>= x)
@if ($op == 'gte') {
$media: 'screen and (min-width: ' + $x + ')';
}
// Less than or equal (<= y)
@elseif ($op == 'lte') {
$media: 'screen and (max-width: ' + $y + ')';
}
// Greater than (> y)
@elseif ($op == 'gt') {
$media: 'screen and (min-width: ' + ($y + 1) + ')';
}
// Less than (< x)
@elseif ($op == 'lt') {
$media: 'screen and (max-width: ' + ($x - 1) + ')';
}
// Not (< x and > y)
@elseif ($op == 'not') {
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
}
// Equal (>= x and <= y)
@else {
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
}
}
}
// String.
@else {
// Missing a media type? Prefix with "screen".
@if (str-slice($a, 0, 1) == '(') {
$media: 'screen and ' + $a;
}
// Otherwise, use as-is.
@else {
$media: $a;
}
}
}
// Output.
@media #{$media} {
@content;
}
}

View File

@@ -0,0 +1,90 @@
/// Removes a specific item from a list.
/// @author Hugo Giraudel
/// @param {list} $list List.
/// @param {integer} $index Index.
/// @return {list} Updated list.
@function remove-nth($list, $index) {
$result: null;
@if type-of($index) != number {
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
}
@else if $index == 0 {
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
}
@else if abs($index) > length($list) {
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
}
@else {
$result: ();
$index: if($index < 0, length($list) + $index + 1, $index);
@for $i from 1 through length($list) {
@if $i != $index {
$result: append($result, nth($list, $i));
}
}
}
@return $result;
}
/// Gets a value from a map.
/// @author Hugo Giraudel
/// @param {map} $map Map.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function val($map, $keys...) {
@if nth($keys, 1) == null {
$keys: remove-nth($keys, 1);
}
@each $key in $keys {
$map: map-get($map, $key);
}
@return $map;
}
/// Gets a duration value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _duration($keys...) {
@return val($duration, $keys...);
}
/// Gets a font value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _font($keys...) {
@return val($font, $keys...);
}
/// Gets a misc value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _misc($keys...) {
@return val($misc, $keys...);
}
/// Gets a palette value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _palette($keys...) {
@return val($palette, $keys...);
}
/// Gets a size value.
/// @param {string} $keys Key(s).
/// @return {string} Value.
@function _size($keys...) {
@return val($size, $keys...);
}

View File

@@ -0,0 +1,78 @@
/// Makes an element's :before pseudoelement a FontAwesome icon.
/// @param {string} $content Optional content value to use.
/// @param {string} $category Optional category to use.
/// @param {string} $where Optional pseudoelement to target (before or after).
@mixin icon($content: false, $category: regular, $where: before) {
text-decoration: none;
&:#{$where} {
@if $content {
content: $content;
}
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
text-transform: none !important;
@if ($category == brands) {
font-family: 'Font Awesome 5 Brands';
}
@elseif ($category == solid) {
font-family: 'Font Awesome 5 Free';
font-weight: 900;
}
@else {
font-family: 'Font Awesome 5 Free';
font-weight: 400;
}
}
}
/// Applies padding to an element, taking the current element-margin value into account.
/// @param {mixed} $tb Top/bottom padding.
/// @param {mixed} $lr Left/right padding.
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
/// @param {bool} $important If true, adds !important.
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
@if $important {
$important: '!important';
}
$x: 0.1em;
@if unit(_size(element-margin)) == 'rem' {
$x: 0.1rem;
}
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
}
/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
/// @param {string} $svg SVG data URL.
/// @return {string} Encoded SVG data URL.
@function svg-url($svg) {
$svg: str-replace($svg, '"', '\'');
$svg: str-replace($svg, '%', '%25');
$svg: str-replace($svg, '<', '%3C');
$svg: str-replace($svg, '>', '%3E');
$svg: str-replace($svg, '&', '%26');
$svg: str-replace($svg, '#', '%23');
$svg: str-replace($svg, '{', '%7B');
$svg: str-replace($svg, '}', '%7D');
$svg: str-replace($svg, ';', '%3B');
@return url("data:image/svg+xml;charset=utf8,#{$svg}");
}

View File

@@ -0,0 +1,20 @@
// Misc.
$misc: (
z-index-base: 10000
);
// Duration.
$duration: (
);
// Size.
$size: (
);
// Font.
$font: (
);
// Palette.
$palette: (
);

View File

@@ -0,0 +1,376 @@
// vendor.scss v1.0 | @ajlkn | MIT licensed */
// Vars.
/// Vendor prefixes.
/// @var {list}
$vendor-prefixes: (
'-moz-',
'-webkit-',
'-ms-',
''
);
/// Properties that should be vendorized.
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
/// @var {list}
$vendor-properties: (
// Animation.
'animation',
'animation-delay',
'animation-direction',
'animation-duration',
'animation-fill-mode',
'animation-iteration-count',
'animation-name',
'animation-play-state',
'animation-timing-function',
// Appearance.
'appearance',
// Backdrop filter.
'backdrop-filter',
// Background image options.
'background-clip',
'background-origin',
'background-size',
// Box sizing.
'box-sizing',
// Clip path.
'clip-path',
// Filter effects.
'filter',
// Flexbox.
'align-content',
'align-items',
'align-self',
'flex',
'flex-basis',
'flex-direction',
'flex-flow',
'flex-grow',
'flex-shrink',
'flex-wrap',
'justify-content',
'order',
// Font feature.
'font-feature-settings',
'font-language-override',
'font-variant-ligatures',
// Font kerning.
'font-kerning',
// Fragmented borders and backgrounds.
'box-decoration-break',
// Grid layout.
'grid-column',
'grid-column-align',
'grid-column-end',
'grid-column-start',
'grid-row',
'grid-row-align',
'grid-row-end',
'grid-row-start',
'grid-template-columns',
'grid-template-rows',
// Hyphens.
'hyphens',
'word-break',
// Masks.
'mask',
'mask-border',
'mask-border-outset',
'mask-border-repeat',
'mask-border-slice',
'mask-border-source',
'mask-border-width',
'mask-clip',
'mask-composite',
'mask-image',
'mask-origin',
'mask-position',
'mask-repeat',
'mask-size',
// Multicolumn.
'break-after',
'break-before',
'break-inside',
'column-count',
'column-fill',
'column-gap',
'column-rule',
'column-rule-color',
'column-rule-style',
'column-rule-width',
'column-span',
'column-width',
'columns',
// Object fit.
'object-fit',
'object-position',
// Regions.
'flow-from',
'flow-into',
'region-fragment',
// Scroll snap points.
'scroll-snap-coordinate',
'scroll-snap-destination',
'scroll-snap-points-x',
'scroll-snap-points-y',
'scroll-snap-type',
// Shapes.
'shape-image-threshold',
'shape-margin',
'shape-outside',
// Tab size.
'tab-size',
// Text align last.
'text-align-last',
// Text decoration.
'text-decoration-color',
'text-decoration-line',
'text-decoration-skip',
'text-decoration-style',
// Text emphasis.
'text-emphasis',
'text-emphasis-color',
'text-emphasis-position',
'text-emphasis-style',
// Text size adjust.
'text-size-adjust',
// Text spacing.
'text-spacing',
// Transform.
'transform',
'transform-origin',
// Transform 3D.
'backface-visibility',
'perspective',
'perspective-origin',
'transform-style',
// Transition.
'transition',
'transition-delay',
'transition-duration',
'transition-property',
'transition-timing-function',
// Unicode bidi.
'unicode-bidi',
// User select.
'user-select',
// Writing mode.
'writing-mode',
);
/// Values that should be vendorized.
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
/// @var {list}
$vendor-values: (
// Cross fade.
'cross-fade',
// Element function.
'element',
// Filter function.
'filter',
// Flexbox.
'flex',
'inline-flex',
// Grab cursors.
'grab',
'grabbing',
// Gradients.
'linear-gradient',
'repeating-linear-gradient',
'radial-gradient',
'repeating-radial-gradient',
// Grid layout.
'grid',
'inline-grid',
// Image set.
'image-set',
// Intrinsic width.
'max-content',
'min-content',
'fit-content',
'fill',
'fill-available',
'stretch',
// Sticky position.
'sticky',
// Transform.
'transform',
// Zoom cursors.
'zoom-in',
'zoom-out',
);
// Functions.
/// Removes a specific item from a list.
/// @author Hugo Giraudel
/// @param {list} $list List.
/// @param {integer} $index Index.
/// @return {list} Updated list.
@function remove-nth($list, $index) {
$result: null;
@if type-of($index) != number {
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
}
@else if $index == 0 {
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
}
@else if abs($index) > length($list) {
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
}
@else {
$result: ();
$index: if($index < 0, length($list) + $index + 1, $index);
@for $i from 1 through length($list) {
@if $i != $index {
$result: append($result, nth($list, $i));
}
}
}
@return $result;
}
/// Replaces a substring within another string.
/// @author Hugo Giraudel
/// @param {string} $string String.
/// @param {string} $search Substring.
/// @param {string} $replace Replacement.
/// @return {string} Updated string.
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
/// Replaces a substring within each string in a list.
/// @param {list} $strings List of strings.
/// @param {string} $search Substring.
/// @param {string} $replace Replacement.
/// @return {list} Updated list of strings.
@function str-replace-all($strings, $search, $replace: '') {
@each $string in $strings {
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
}
@return $strings;
}
// Mixins.
/// Wraps @content in vendorized keyframe blocks.
/// @param {string} $name Name.
@mixin keyframes($name) {
@-moz-keyframes #{$name} { @content; }
@-webkit-keyframes #{$name} { @content; }
@-ms-keyframes #{$name} { @content; }
@keyframes #{$name} { @content; }
}
/// Vendorizes a declaration's property and/or value(s).
/// @param {string} $property Property.
/// @param {mixed} $value String/list of value(s).
@mixin vendor($property, $value) {
// Determine if property should expand.
$expandProperty: index($vendor-properties, $property);
// Determine if value should expand (and if so, add '-prefix-' placeholder).
$expandValue: false;
@each $x in $value {
@each $y in $vendor-values {
@if $y == str-slice($x, 1, str-length($y)) {
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
$expandValue: true;
}
}
}
// Expand property?
@if $expandProperty {
@each $vendor in $vendor-prefixes {
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
}
}
// Expand just the value?
@elseif $expandValue {
@each $vendor in $vendor-prefixes {
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
}
}
// Neither? Treat them as a normal declaration.
@else {
#{$property}: #{$value};
}
}

View File

@@ -0,0 +1,681 @@
@import 'libs/vars';
@import 'libs/functions';
@import 'libs/mixins';
@import 'libs/vendor';
@import 'libs/breakpoints';
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600');
@import url('fontawesome-all.min.css');
/*
Parallelism by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
// Breakpoints.
@include breakpoints((
xlarge: ( 1281px, 1680px ),
large: ( 981px, 1280px ),
medium: ( 737px, 980px ),
small: ( 481px, 736px ),
xsmall: ( null, 480px )
));
// Reset.
// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain)
html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
&:before,
&:after {
content: '';
content: none;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body {
-webkit-text-size-adjust: none;
}
mark {
background-color: transparent;
color: inherit;
}
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input, select, textarea {
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
}
/* Basic */
// Set box model to border-box.
// Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
@include vendor('background-image', ('url("images/overlay.png")', 'linear-gradient(top, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.65))', 'url("../../images/bg.jpg")'));
background-position: top left, bottom left, auto;
background-size: auto, 100% 100%, cover;
background-attachment: fixed;
background-repeat: repeat, no-repeat, auto;
position: relative;
background-color: #150C07;
line-height: 1.75em;
overflow-x: hidden;
overflow-y: auto;
// Stops initial animations until page loads.
&.is-preload {
*, *:before, *:after {
@include vendor('animation', 'none !important');
@include vendor('transition', 'none !important');
}
}
@include breakpoint('<=large') {
background-attachment: scroll;
}
@include breakpoint('<=small') {
background-attachment: scroll;
background-size: auto, 100% 100%, 250% auto;
background-repeat: repeat, no-repeat, no-repeat;
background-position: top left, bottom left, 50% 0%;
}
}
body, input, select, textarea {
font-family: 'Source Sans Pro';
font-weight: 400;
padding: 0;
font-size: 13pt;
color: rgba(255, 255, 255, 0.6);
@include breakpoint('<=xlarge') {
font-size: 11pt;
}
@include breakpoint('<=large') {
font-size: 10pt;
}
@include breakpoint('<=medium') {
font-size: 11pt;
}
}
a {
color: #fff;
color: rgba(255, 255, 255, 0.85);
text-decoration: none;
@include vendor('transition', 'color 0.25s ease-in-out');
&:hover {
color: #d64760;
}
}
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
color: #fff;
letter-spacing: -0.05em;
}
strong, b {
color: #fff;
color: rgba(255, 255, 255, 0.85);
font-weight: 600;
}
/* List */
ul {
&.icons {
cursor: default;
margin: 0 0 0.5em 0;
li {
display: inline-block;
font-size: 1.5em;
margin-left: 1em;
span {
display: none;
}
a {
opacity: 0.35;
color: #fff;
@include vendor('transition', 'opacity 0.25s ease-in-out');
&:hover {
opacity: 1.0;
}
}
&:first-child {
margin-left: 0;
}
}
@include breakpoint('<=small') {
margin: 0 0 2em 0;
}
}
}
/* Icons */
.icon {
@include icon;
position: relative;
text-decoration: none;
&:before {
line-height: inherit;
}
> .label {
display: none;
}
&.solid {
&:before {
font-weight: 900;
}
}
&.brands {
&:before {
font-family: 'Font Awesome 5 Brands';
}
}
}
/* Wrapper */
#wrapper {
min-height: 100vh;
@include vendor('display', 'flex');
@include vendor('flex-direction', 'column');
@include vendor('justify-content', 'space-between');
@include vendor('align-items', 'center');
@include vendor('transition', 'filter 0.5s ease-in-out');
&:before {
content: '';
display: block;
}
body.is-poptrox-visible & {
@include vendor('filter', 'blur(0.25em)');
}
@include breakpoint('<=small') {
min-height: 0;
}
}
/* Scroll Zone */
.scrollZone {
position: fixed;
width: 6rem;
height: 100vh;
cursor: -moz-grab;
cursor: -webkit-grab;
cursor: -ms-grab;
cursor: grab;
z-index: _misc(z-index-base) + 1;
&.left {
left: 0;
}
&.right {
right: 0;
}
@include breakpoint('<=small') {
display: none;
}
}
/* Main */
#main {
$border: 10px;
@include vendor('transition', 'opacity 1s ease-in-out');
@include vendor('transition-delay', '0.5s');
position: relative;
z-index: 1;
width: -moz-min-content;
width: -webkit-min-content;
width: -ms-min-content;
width: min-content;
max-width: 100vw;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
padding: ($border * 0.5);
.items {
@include vendor('display', 'flex');
> :last-child {
border-right: solid $border #ffffff;
}
}
.item {
$width: 20em;
@include vendor('flex-grow', '0');
@include vendor('flex-shrink', '0');
margin: ($border * 0.5);
height: 16em;
box-shadow: 0 0 0 $border #ffffff;
&.span-1 {
width: $width;
}
&.span-2 {
width: $width * 1.5;
}
&.span-3 {
width: $width * 2;
}
&.intro {
background-color: #d64760;
background-image: url('images/overlay.png');
@include vendor('display', 'flex');
@include vendor('flex-direction', 'column');
@include vendor('justify-content', 'center');
padding: 1em 3em;
h1 {
font-size: 3em;
line-height: 1em;
}
p {
font-size: 1.25em;
line-height: 1.5em;
margin: 0.5em 0 0 0;
opacity: 0.65;
}
}
&.thumb {
display: block;
position: relative;
background: rgba(255, 255, 255, 0.25);
cursor: default;
h2 {
position: absolute;
bottom: 0;
left: 0;
background: rgba(18, 21, 29, 0.85);
width: 100%;
padding: 1em;
font-weight: 400;
line-height: 1em;
z-index: 2;
}
img {
display: block;
z-index: 1;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
@include vendor('object-fit', 'cover');
@include vendor('object-position', 'center');
@include vendor('transition', 'opacity 0.75s ease-in-out');
@include vendor('transition-delay', '1.25s');
}
@for $i from 1 through 6 {
&.delay-#{$i} {
img {
@include vendor('transition-delay', '#{1.25 + ($i * 0.125)}s');
}
}
}
}
}
body.is-preload & {
opacity: 0;
.item {
&.thumb {
img {
opacity: 0;
}
}
}
}
@include breakpoint('<=xlarge') {
.item {
$width: 17em;
height: 14em;
&.span-1 {
width: $width;
}
&.span-2 {
width: $width * 1.5;
}
&.span-3 {
width: $width * 2;
}
}
}
@include breakpoint('<=small') {
$border: 5px;
width: 100%;
overflow-x: hidden;
overflow-y: auto;
padding: ($border * 0.5);
.items {
@include vendor('flex-wrap', 'wrap');
@include vendor('justify-content', 'center');
> :last-child {
border-right: 0;
}
}
.item {
@include vendor('flex-grow', '1');
@include vendor('flex-shrink', '1');
width: calc(50vw - #{$border * 3}) !important;
margin: ($border * 0.5);
box-shadow: 0 0 0 $border #ffffff;
&.intro {
width: calc(100vw - #{$border * 4}) !important;
text-align: center;
height: auto;
padding: 3em;
h1 {
font-size: 2em;
}
p {
font-size: 1em;
}
}
&.thumb {
h2 {
display: none;
}
}
}
}
@include breakpoint('<=xsmall') {
.item {
//width: calc(100vw - #{$border * 4}) !important;
height: 10em;
}
}
}
/* Header */
#footer {
width: 100%;
padding: 1.5em;
@include vendor('display', 'flex');
@include vendor('justify-content', 'space-between');
position: relative;
z-index: _misc(z-index-base) + 2;
> section {
&:first-child {
text-align: left;
max-width: 36em;
padding-right: 2em;
}
&:last-child {
text-align: right;
max-width: 36em;
}
}
h2 {
font-size: 2.25em;
margin: 0 0 1em 0;
}
.copyright {
li {
display: inline-block;
margin-left: 1em;
padding-left: 1em;
border-left: solid 1px rgba(255, 255, 255, 0.25);
line-height: 1em;
&:first-child {
border-left: 0;
margin-left: 0;
padding-left: 0;
}
}
}
@include breakpoint('<=medium') {
@include vendor('flex-direction', 'column');
> section {
&:first-child {
width: 100%;
padding-right: 0;
}
&:last-child {
text-align: left;
margin: 1.5em 0 0 0;
width: 100%;
}
}
}
@include breakpoint('<=small') {
text-align: center;
padding: 3em;
> section {
&:first-child {
text-align: center;
max-width: 100%;
}
&:last-child {
text-align: center;
max-width: 100%;
}
}
.copyright {
li {
display: block;
margin: 0.75em 0 0 0;
padding-left: 0;
border-left: 0;
&:first-child {
margin-top: 0;
}
}
}
}
}
/* Popup */
.poptrox-popup {
background: #1a1f2c;
background: rgba(18, 21, 29, 0.9);
box-shadow: 0px 0px 0px 10px #fff, 0px 10px 60px 10px rgba(8, 11, 19, 0.55);
cursor: default;
.loader {
display: block;
width: 48px;
height: 48px;
position: absolute;
top: 50%;
left: 50%;
margin: -24px 0 0 -24px;
background: url('images/loader.gif');
opacity: 0.25;
}
.caption {
position: absolute;
bottom: 0;
left: 0;
background: #1a1f2c;
background: rgba(18, 21, 29, 0.85);
display: block;
width: 100%;
line-height: 75px;
text-align: center;
font-size: 1.25em;
color: #fff;
}
.nav-next, .nav-previous {
text-decoration: none;
font-weight: normal;
font-style: normal;
@include vendor('transition', 'opacity 0.25s ease-in-out');
opacity: 0.35;
&:hover {
opacity: 1.0;
}
}
.nav-next, .nav-previous {
@include icon(false, solid);
text-transform: none !important;
width: 150px;
height: 75px;
position: absolute;
bottom: 0;
cursor: pointer;
font-size: 3em;
line-height: 75px;
}
.nav-next {
right: 0;
text-align: right;
padding-right: 30px;
&:before {
content: '\f105';
}
}
.nav-previous {
left: 0;
text-align: left;
padding-left: 30px;
&:before {
content: '\f104';
}
}
@include breakpoint('<=small') {
background: #0a0f1c;
box-shadow: 0px 0px 30px 10px rgba(8, 11, 19, 0.85);
border: solid 2.5px #fff;
@include vendor('box-sizing', 'content-box');
.caption {
display: none !important;
}
.nav-next {
display: none !important;
}
.nav-previous {
display: none !important;
}
}
}

View File

@@ -0,0 +1,26 @@
@import 'libs/vars';
@import 'libs/functions';
@import 'libs/mixins';
@import 'libs/vendor';
@import 'libs/breakpoints';
/*
Parallelism by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
/* Main */
#main {
opacity: 1 !important;
overflow-x: auto !important;
.item {
&.thumb {
img {
opacity: 1 !important;
}
}
}
}