mirror of
https://github.com/opelly27/cweb.git
synced 2026-05-20 02:47:38 +00:00
switched theme
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
@@ -12,34 +12,31 @@
|
||||
button,
|
||||
.button {
|
||||
@include vendor('appearance', 'none');
|
||||
@include vendor('transition', 'background-color #{_duration(transition)} ease-in-out, color #{_duration(transition)} ease-in-out');
|
||||
@include vendor('transition', (
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
background-color: transparent;
|
||||
border-radius: _size(border-radius);
|
||||
border: 0;
|
||||
box-shadow: inset 0 0 0 _size(border-width) _palette(border);
|
||||
color: _palette(fg-bold) !important;
|
||||
box-shadow: inset 0 0 0 (_size(border-width) * 2) _palette(fg);
|
||||
color: _palette(fg) !important;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight);
|
||||
height: _size(element-height);
|
||||
font-size: 0.8em;
|
||||
font-weight: _font(weight-bold);
|
||||
height: 3.5em;
|
||||
letter-spacing: _font(letter-spacing);
|
||||
line-height: _size(element-height);
|
||||
outline: 0;
|
||||
padding: 0 1.25rem 0 (1.25rem + (_font(letter-spacing) * 0.5));
|
||||
line-height: 3.45em;
|
||||
overflow: hidden;
|
||||
padding: 0 1.25em 0 #{1.25em + _font(letter-spacing)};
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background-color: _palette(border-bg);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: _palette(border-bg-alt);
|
||||
}
|
||||
|
||||
&.icon {
|
||||
&:before {
|
||||
margin-right: 0.5em;
|
||||
@@ -52,29 +49,40 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: _palette(accent1) !important;
|
||||
box-shadow: inset 0 0 0 (_size(border-width) * 2) _palette(accent1);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: transparentize(_palette(accent1), 0.9);
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
|
||||
&.big {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
&.special {
|
||||
background-color: _palette(fg-bold);
|
||||
box-shadow: none;
|
||||
background-color: _palette(fg);
|
||||
color: _palette(bg) !important;
|
||||
font-weight: _font(weight-bold);
|
||||
|
||||
&:hover {
|
||||
background-color: _palette(accent1);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: darken(_palette(accent1), 8);
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
@include vendor('pointer-events', 'none');
|
||||
cursor: default;
|
||||
opacity: 0.25;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button {
|
||||
line-height: calc(#{_size(element-height)} - 2px);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
@@ -7,70 +7,69 @@
|
||||
/* Form */
|
||||
|
||||
form {
|
||||
$gutter: _size(element-margin) * 0.75;
|
||||
margin: (_size(element-margin) * -0.5) 0 _size(element-margin) 0;
|
||||
|
||||
margin: 0 0 (_size(element-margin) * 1.25) 0;
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.field {
|
||||
margin: 0 0 ($gutter * 1) 0;
|
||||
|
||||
&.half {
|
||||
width: 50%;
|
||||
float: left;
|
||||
padding: 0 0 0 ($gutter * 1 * 0.5);
|
||||
|
||||
&.first {
|
||||
padding: 0 ($gutter * 1 * 0.5) 0 0;
|
||||
}
|
||||
}
|
||||
position: relative;
|
||||
float: left;
|
||||
margin: 0 0 (_size(element-margin) * 0.65) 0;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
> .actions {
|
||||
margin: ($gutter * 1.25) 0 0 0 !important;
|
||||
.half {
|
||||
width: calc(50% + #{_size(field-gutter) * 0.5}) !important;
|
||||
padding-left: _size(field-gutter);
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
.field {
|
||||
margin: 0 0 ($gutter * 0.75) 0;
|
||||
.half.first {
|
||||
width: calc(50% - #{_size(field-gutter) * 0.5}) !important;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.half {
|
||||
padding: 0 0 0 ($gutter * 0.75 * 0.5);
|
||||
:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.first {
|
||||
padding: 0 ($gutter * 0.75 * 0.5) 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.half:nth-last-child(2) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> .actions {
|
||||
margin: ($gutter * 1) 0 0 0 !important;
|
||||
}
|
||||
.actions {
|
||||
position: relative;
|
||||
clear: both;
|
||||
padding-top: (_size(element-margin) * 0.5);
|
||||
}
|
||||
|
||||
@include breakpoint(xsmall) {
|
||||
.field {
|
||||
&.half {
|
||||
width: 100%;
|
||||
float: none;
|
||||
padding: 0;
|
||||
.half {
|
||||
width: 100% !important;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.first {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.half.first {
|
||||
width: 100% !important;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.half:nth-last-child(2) {
|
||||
margin: 0 0 (_size(element-margin) * 0.65) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
color: _palette(fg-bold);
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
font-weight: _font(weight);
|
||||
letter-spacing: _font(letter-spacing);
|
||||
line-height: 1.5;
|
||||
font-size: 0.9em;
|
||||
font-weight: _font(weight-bold);
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
@@ -80,18 +79,14 @@
|
||||
select,
|
||||
textarea {
|
||||
@include vendor('appearance', 'none');
|
||||
@include vendor('transition', (
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out',
|
||||
'background-color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
background: transparent;
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width) _palette(border);
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
border-bottom: solid _size(border-width) _palette(border);
|
||||
color: inherit;
|
||||
display: block;
|
||||
outline: 0;
|
||||
padding: 0 1rem;
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
|
||||
@@ -100,16 +95,8 @@
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: _palette(border-bg);
|
||||
border-color: _palette(fg-bold);
|
||||
box-shadow: 0 0 0 _size(border-width) _palette(fg-bold);
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
option {
|
||||
background: _palette(bg);
|
||||
color: _palette(fg);
|
||||
border-bottom-color: _palette(accent1);
|
||||
box-shadow: inset 0 -1px 0 0 _palette(accent1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,11 +107,10 @@
|
||||
|
||||
&:before {
|
||||
color: _palette(border);
|
||||
content: '\f107';
|
||||
content: '\f078';
|
||||
display: block;
|
||||
height: _size(element-height);
|
||||
//line-height: _size(element-height);
|
||||
line-height: calc(#{_size(element-height)} + 0em);
|
||||
line-height: _size(element-height);
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
@@ -146,7 +132,8 @@
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding: 0.75rem 1rem;
|
||||
padding: 0;
|
||||
min-height: (_size(element-height) * 1.25);
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
@@ -154,49 +141,41 @@
|
||||
@include vendor('appearance', 'none');
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: -2rem;
|
||||
margin-right: -2em;
|
||||
opacity: 0;
|
||||
width: 1rem;
|
||||
width: 1em;
|
||||
z-index: -1;
|
||||
|
||||
& + label {
|
||||
@include icon;
|
||||
@include vendor('user-select', 'none');
|
||||
color: _palette(fg);
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 0.8rem;
|
||||
font-size: 1em;
|
||||
font-weight: _font(weight);
|
||||
margin: 0 0 (_size(element-margin) * 0.25) 0;
|
||||
padding-left: (_size(element-height) * 0.6) + 1rem;
|
||||
padding-right: 0.75rem;
|
||||
padding-left: (_size(element-height) * 0.6) + 0.75em;
|
||||
padding-right: 0.75em;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
@include vendor('transition', (
|
||||
'border-color #{_duration(transition)} ease-in-out',
|
||||
'box-shadow #{_duration(transition)} ease-in-out',
|
||||
'background-color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width) _palette(border);
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: (_size(element-height) * 0.6);
|
||||
left: 0;
|
||||
//line-height: (_size(element-height) * 0.575);
|
||||
line-height: calc(#{_size(element-height) * 0.575} + 0em);
|
||||
line-height: (_size(element-height) * 0.575);
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: -0.125rem;
|
||||
top: 0;
|
||||
width: (_size(element-height) * 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
background: _palette(fg-bold) !important;
|
||||
border-color: _palette(fg-bold) !important;
|
||||
background: _palette(fg);
|
||||
border-color: _palette(fg);
|
||||
color: _palette(bg);
|
||||
content: '\f00c';
|
||||
}
|
||||
@@ -204,9 +183,8 @@
|
||||
|
||||
&:focus + label {
|
||||
&:before {
|
||||
background: _palette(border-bg);
|
||||
border-color: _palette(fg-bold);
|
||||
box-shadow: 0 0 0 _size(border-width) _palette(fg-bold);
|
||||
border-color: _palette(accent1);
|
||||
box-shadow: 0 0 0 _size(border-width) _palette(accent1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -225,29 +203,4 @@
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
color: _palette(fg-light) !important;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
color: _palette(fg-light) !important;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
color: _palette(fg-light) !important;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
color: _palette(fg-light) !important;
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
.formerize-placeholder {
|
||||
color: _palette(fg-light) !important;
|
||||
opacity: 1.0;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
@@ -14,4 +14,37 @@
|
||||
> .label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
@include vendor('transition', (
|
||||
'background-color #{_duration(transition)} ease-in-out',
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'border-color #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
background-color: transparent;
|
||||
border: solid 1px _palette(border);
|
||||
border-radius: _size(border-radius);
|
||||
width: 2.65em;
|
||||
height: 2.65em;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 2.65em;
|
||||
color: inherit;
|
||||
|
||||
&:before {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: _palette(accent1);
|
||||
border-color: _palette(accent1);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: transparentize(_palette(accent1), 0.9);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
@@ -12,21 +12,6 @@
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
@include vendor('pointer-events', 'none');
|
||||
background-image: url('../../images/overlay.png');
|
||||
background-color: _palette(bg-overlay);
|
||||
border-radius: _size(border-radius);
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0.5;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
img {
|
||||
border-radius: _size(border-radius);
|
||||
display: block;
|
||||
@@ -65,23 +50,15 @@
|
||||
|
||||
&.main {
|
||||
display: block;
|
||||
margin: (_size(element-margin) * 1.25) 0;
|
||||
margin: 0 0 (_size(element-margin) * 1.5) 0;
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
&.main {
|
||||
margin: (_size(element-margin) * 1) 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(xsmall) {
|
||||
&.main {
|
||||
margin: (_size(element-margin) * 0.75) 0;
|
||||
@include breakpoint(small) {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
@@ -44,32 +44,11 @@
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin: -1em 0 _size(element-margin) -1em;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
padding: 0 0.75em 0 0;
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
border-radius: 100%;
|
||||
box-shadow: inset 0 0 0 _size(border-width) _palette(border);
|
||||
display: inline-block;
|
||||
height: 2.25rem;
|
||||
line-height: 2.25rem;
|
||||
text-align: center;
|
||||
width: 2.25rem;
|
||||
|
||||
&:hover {
|
||||
background-color: _palette(border-bg);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: _palette(border-bg-alt);
|
||||
}
|
||||
}
|
||||
padding: 1em 0 0 1em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
///
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Section/Article */
|
||||
|
||||
section, article {
|
||||
&.special {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
p {
|
||||
margin-top: _size(element-margin) * -0.5;
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Dimension by HTML5 UP
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
///
|
||||
/// Phantom by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Tiles */
|
||||
|
||||
.tiles {
|
||||
$gutter: _size(gutter);
|
||||
$duration: 0.5s;
|
||||
$ease: 'ease';
|
||||
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
postiion: relative;
|
||||
margin: ($gutter * -1) 0 0 ($gutter * -1);
|
||||
|
||||
article {
|
||||
@include vendor('transition', (
|
||||
'transform #{$duration} #{$ease}',
|
||||
'opacity #{$duration} #{$ease}'
|
||||
));
|
||||
position: relative;
|
||||
width: calc(#{(100% / 3)} - #{$gutter * 1});
|
||||
margin: $gutter 0 0 $gutter;
|
||||
|
||||
> .image {
|
||||
@include vendor('transition', 'transform #{$duration} #{$ease}');
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-radius: _size(border-radius);
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:before {
|
||||
@include vendor('pointer-events', 'none');
|
||||
@include vendor('transition', (
|
||||
'background-color #{$duration} #{$ease}',
|
||||
'opacity #{$duration} #{$ease}'
|
||||
));
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 1.0;
|
||||
z-index: 1;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
&:after {
|
||||
@include vendor('pointer-events', 'none');
|
||||
@include vendor('transition', 'opacity #{$duration} #{$ease}');
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" preserveAspectRatio="none"><style>line { stroke-width: 0.25px; stroke: #ffffff; }</style><line x1="0" y1="0" x2="100" y2="100" /><line x1="100" y1="0" x2="0" y2="100" /></svg>');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
opacity: 0.25;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'column');
|
||||
@include vendor('align-items', 'center');
|
||||
@include vendor('justify-content', 'center');
|
||||
@include vendor('transition', (
|
||||
'background-color #{$duration} #{$ease}',
|
||||
'transform #{$duration} #{$ease}'
|
||||
));
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 1em;
|
||||
border-radius: _size(border-radius);
|
||||
border-bottom: 0;
|
||||
color: _palette(fg-accent);
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
z-index: 3;
|
||||
|
||||
> :last-child {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: _palette(fg-accent) !important;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
@include vendor('transition', (
|
||||
'max-height #{$duration} #{$ease}',
|
||||
'opacity #{$duration} #{$ease}'
|
||||
));
|
||||
width: 100%;
|
||||
max-height: 0;
|
||||
line-height: 1.5;
|
||||
margin-top: 0.35em;
|
||||
opacity: 0;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent1);
|
||||
}
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent2);
|
||||
}
|
||||
}
|
||||
|
||||
&.style3 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent3);
|
||||
}
|
||||
}
|
||||
|
||||
&.style4 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent4);
|
||||
}
|
||||
}
|
||||
|
||||
&.style5 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent5);
|
||||
}
|
||||
}
|
||||
|
||||
&.style6 {
|
||||
> .image:before {
|
||||
background-color: _palette(accent6);
|
||||
}
|
||||
}
|
||||
|
||||
body:not(.is-touch) & {
|
||||
&:hover {
|
||||
> .image {
|
||||
@include vendor('transform', 'scale(1.1)');
|
||||
|
||||
&:before {
|
||||
background-color: _palette(bg-accent);
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
&:after {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
max-height: 15em;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
* + & {
|
||||
margin-top: _size(element-margin);
|
||||
}
|
||||
|
||||
body.is-loading & {
|
||||
article {
|
||||
@include vendor('transform', 'scale(0.9)');
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
body.is-touch & {
|
||||
article {
|
||||
.content {
|
||||
max-height: 15em;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(large) {
|
||||
$gutter: _size(gutter) * 0.5;
|
||||
|
||||
margin: ($gutter * -1) 0 0 ($gutter * -1);
|
||||
|
||||
article {
|
||||
width: calc(#{(100% / 3)} - #{$gutter * 1});
|
||||
margin: $gutter 0 0 $gutter;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(medium) {
|
||||
$gutter: _size(gutter);
|
||||
|
||||
margin: ($gutter * -1) 0 0 ($gutter * -1);
|
||||
|
||||
article {
|
||||
width: calc(#{(100% / 2)} - #{$gutter * 1});
|
||||
margin: $gutter 0 0 $gutter;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
$gutter: _size(gutter) * 0.5;
|
||||
|
||||
margin: ($gutter * -1) 0 0 ($gutter * -1);
|
||||
|
||||
article {
|
||||
width: calc(#{(100% / 2)} - #{$gutter * 1});
|
||||
margin: $gutter 0 0 $gutter;
|
||||
|
||||
&:hover {
|
||||
> .image {
|
||||
@include vendor('transform', 'scale(1.0)');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(xsmall) {
|
||||
$gutter: _size(gutter) * 0.5;
|
||||
|
||||
margin: 0;
|
||||
|
||||
article {
|
||||
width: 100%;
|
||||
margin: $gutter 0 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user