parent
ae348cceba
commit
5c19f27149
After Width: | Height: | Size: 578 KiB |
@ -0,0 +1,70 @@
|
||||
/**
|
||||
* <figure class="media-figure">
|
||||
* <img class="media__img" src="https://via.placeholder.com/150" />
|
||||
* <figcaption class="media-figure__caption">
|
||||
* food truck yr franzen pabst
|
||||
* </figcaption>
|
||||
* </figure>
|
||||
*
|
||||
*/
|
||||
|
||||
@mixin plain-ui__component__modal()
|
||||
{
|
||||
.modal {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
padding: 1em;
|
||||
z-index: 20;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&__inner {
|
||||
position: relative;
|
||||
z-index: 21;
|
||||
|
||||
max-width: 500px;
|
||||
|
||||
.button {
|
||||
color: white;
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
white-space: pre-line;
|
||||
|
||||
margin-bottom: 2rem;
|
||||
|
||||
.icon {
|
||||
font-size: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__title, &__body {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&__body {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
&:before {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0,0,0,.87);
|
||||
z-index: 19;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
.object-contain {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.object-cover {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.object-fill {
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.object-none {
|
||||
object-fit: none;
|
||||
}
|
||||
|
||||
.object-scale-down {
|
||||
object-fit: scale-down;
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Sizing
|
||||
*
|
||||
* Width and Height Classes,
|
||||
* Sizes with percentage will calculate with the Reflex Grid
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
$plain-ui__helpers__height-steps: 50;
|
||||
|
||||
.w-0 { width: 0; }
|
||||
.h-0 { height: 0; }
|
||||
.w-1 { width: 1px;}
|
||||
.h-1 { height: 1px; }
|
||||
|
||||
@for $i from 1 through $reflex-columns {
|
||||
.w-col-#{$i} {
|
||||
width: percentage(($i / $reflex-columns));
|
||||
}
|
||||
|
||||
.h-col-#{$i} {
|
||||
height: percentage(($i / $reflex-columns));
|
||||
}
|
||||
}
|
||||
|
||||
@for $i from 1 through $plain-ui__helpers__height-steps {
|
||||
.w-#{$i} {
|
||||
width: #{($i * 0.5)}rem;
|
||||
}
|
||||
}
|
||||
|
||||
@for $i from 1 through $plain-ui__helpers__height-steps {
|
||||
.h-#{$i} {
|
||||
height: #{($i * 0.5)}rem;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
$plain-ui__spacing-direction: (
|
||||
'top',
|
||||
'bottom',
|
||||
'left',
|
||||
'right'
|
||||
);
|
||||
|
||||
@each $direction in $plain-ui__spacing-direction {
|
||||
|
||||
@include spacing('m', 'margin', $direction, 0, 0);
|
||||
@include spacing('m', 'margin', $direction, 1, 1px);
|
||||
|
||||
@for $i from 0 through $plain-ui__helpers__spacing-steps {
|
||||
@include spacing($class, $style, $direction, $name, $plain-ui__helpers__spacing-gap * factor($i))
|
||||
@include plain-ui__media-breakpoints-calculate('margin-'#{$direction}, factor($i), $plain-ui__helpers__spacing-breakpoints, true);
|
||||
}
|
||||
}
|
||||
|
||||
@each $direction in $plain-ui__spacing-direction {
|
||||
|
||||
@include spacing('p', 'padding', $direction, 0, 0);
|
||||
@include spacing('p', 'padding', $direction, 1, 1px);
|
||||
|
||||
@for $i from 0 through $plain-ui__helpers__spacing-steps {
|
||||
.p-#{$direction}-#{$i} {
|
||||
padding-#{$direction}: ($plain-ui__helpers__spacing-gap * factor($i)) !important;
|
||||
|
||||
@if $i > 0 {
|
||||
@include plain-ui__media-breakpoints-calculate('padding-'#{$direction}, factor($i), $plain-ui__helpers__spacing-breakpoints, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin spacing($class, $style, $direction, $name, $value, $breakpoints)
|
||||
{
|
||||
.#{$class}-#{$direction}-#{$name} {
|
||||
#{$style}-#{$direction}: $value;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue