init
This commit is contained in:
31
user/plugins/problems/scss/utilities/_colors.scss
Executable file
31
user/plugins/problems/scss/utilities/_colors.scss
Executable file
@@ -0,0 +1,31 @@
|
||||
// Text colors
|
||||
@include text-color-variant(".text-primary", $primary-color);
|
||||
|
||||
@include text-color-variant(".text-secondary", $secondary-color-dark);
|
||||
|
||||
@include text-color-variant(".text-gray", $gray-color);
|
||||
|
||||
@include text-color-variant(".text-light", $light-color);
|
||||
|
||||
@include text-color-variant(".text-dark", $body-font-color);
|
||||
|
||||
@include text-color-variant(".text-success", $success-color);
|
||||
|
||||
@include text-color-variant(".text-warning", $warning-color);
|
||||
|
||||
@include text-color-variant(".text-error", $error-color);
|
||||
|
||||
// Background colors
|
||||
@include bg-color-variant(".bg-primary", $primary-color);
|
||||
|
||||
@include bg-color-variant(".bg-secondary", $secondary-color);
|
||||
|
||||
@include bg-color-variant(".bg-dark", $dark-color);
|
||||
|
||||
@include bg-color-variant(".bg-gray", $bg-color);
|
||||
|
||||
@include bg-color-variant(".bg-success", $success-color);
|
||||
|
||||
@include bg-color-variant(".bg-warning", $warning-color);
|
||||
|
||||
@include bg-color-variant(".bg-error", $error-color);
|
||||
24
user/plugins/problems/scss/utilities/_cursors.scss
Executable file
24
user/plugins/problems/scss/utilities/_cursors.scss
Executable file
@@ -0,0 +1,24 @@
|
||||
// Cursors
|
||||
.c-hand {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.c-move {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.c-zoom-in {
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.c-zoom-out {
|
||||
cursor: zoom-out;
|
||||
}
|
||||
|
||||
.c-not-allowed {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.c-auto {
|
||||
cursor: auto;
|
||||
}
|
||||
44
user/plugins/problems/scss/utilities/_display.scss
Executable file
44
user/plugins/problems/scss/utilities/_display.scss
Executable file
@@ -0,0 +1,44 @@
|
||||
// Display
|
||||
.d-block {
|
||||
display: block;
|
||||
}
|
||||
.d-inline {
|
||||
display: inline;
|
||||
}
|
||||
.d-inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
.d-flex {
|
||||
display: flex;
|
||||
}
|
||||
.d-inline-flex {
|
||||
display: inline-flex;
|
||||
}
|
||||
.d-none,
|
||||
.d-hide {
|
||||
display: none !important;
|
||||
}
|
||||
.d-visible {
|
||||
visibility: visible;
|
||||
}
|
||||
.d-invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
.text-hide {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: transparent;
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
text-shadow: none;
|
||||
}
|
||||
.text-assistive {
|
||||
border: 0;
|
||||
clip: rect(0,0,0,0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
50
user/plugins/problems/scss/utilities/_divider.scss
Executable file
50
user/plugins/problems/scss/utilities/_divider.scss
Executable file
@@ -0,0 +1,50 @@
|
||||
// Divider
|
||||
.divider,
|
||||
.divider-vert {
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
&[data-content]::after {
|
||||
background: $bg-color-light;
|
||||
color: $gray-color;
|
||||
content: attr(data-content);
|
||||
display: inline-block;
|
||||
font-size: $font-size-sm;
|
||||
padding: 0 $unit-2;
|
||||
transform: translateY(-$font-size-sm + $border-width);
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
border-top: $border-width solid $border-color;
|
||||
height: $border-width;
|
||||
margin: $unit-2 0;
|
||||
|
||||
&[data-content] {
|
||||
margin: $unit-4 0;
|
||||
}
|
||||
}
|
||||
|
||||
.divider-vert {
|
||||
display: block;
|
||||
padding: $unit-4;
|
||||
|
||||
&::before {
|
||||
border-left: $border-width solid $border-color;
|
||||
bottom: $unit-2;
|
||||
content: "";
|
||||
display: block;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
top: $unit-2;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
&[data-content]::after {
|
||||
left: 50%;
|
||||
padding: $unit-1 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
34
user/plugins/problems/scss/utilities/_loading.scss
Executable file
34
user/plugins/problems/scss/utilities/_loading.scss
Executable file
@@ -0,0 +1,34 @@
|
||||
// Loading
|
||||
.loading {
|
||||
color: transparent !important;
|
||||
min-height: $unit-4;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
&::after {
|
||||
animation: loading 500ms infinite linear;
|
||||
border: $border-width-lg solid $primary-color;
|
||||
border-radius: 50%;
|
||||
border-right-color: transparent;
|
||||
border-top-color: transparent;
|
||||
content: "";
|
||||
display: block;
|
||||
height: $unit-4;
|
||||
left: 50%;
|
||||
margin-left: -$unit-2;
|
||||
margin-top: -$unit-2;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: $unit-4;
|
||||
z-index: $zindex-0;
|
||||
}
|
||||
|
||||
&.loading-lg {
|
||||
min-height: $unit-10;
|
||||
&::after {
|
||||
height: $unit-8;
|
||||
margin-left: -$unit-4;
|
||||
margin-top: -$unit-4;
|
||||
width: $unit-8;
|
||||
}
|
||||
}
|
||||
}
|
||||
50
user/plugins/problems/scss/utilities/_position.scss
Executable file
50
user/plugins/problems/scss/utilities/_position.scss
Executable file
@@ -0,0 +1,50 @@
|
||||
// Position
|
||||
.clearfix {
|
||||
@include clearfix();
|
||||
}
|
||||
|
||||
.float-left {
|
||||
float: left !important;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right !important;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.absolute {
|
||||
position: absolute !important;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
position: fixed !important;
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: block;
|
||||
float: none;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.flex-centered {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
// Spacing
|
||||
@include margin-variant(0, 0);
|
||||
|
||||
@include margin-variant(1, $unit-1);
|
||||
|
||||
@include margin-variant(2, $unit-2);
|
||||
|
||||
@include padding-variant(0, 0);
|
||||
|
||||
@include padding-variant(1, $unit-1);
|
||||
|
||||
@include padding-variant(2, $unit-2);
|
||||
8
user/plugins/problems/scss/utilities/_shapes.scss
Executable file
8
user/plugins/problems/scss/utilities/_shapes.scss
Executable file
@@ -0,0 +1,8 @@
|
||||
// Shapes
|
||||
.s-rounded {
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
|
||||
.s-circle {
|
||||
border-radius: 50%;
|
||||
}
|
||||
64
user/plugins/problems/scss/utilities/_text.scss
Executable file
64
user/plugins/problems/scss/utilities/_text.scss
Executable file
@@ -0,0 +1,64 @@
|
||||
// Text
|
||||
// Text alignment utilities
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-justify {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
// Text transform utilities
|
||||
.text-lowercase {
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.text-uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.text-capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
// Text style utilities
|
||||
.text-normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.text-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.text-italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.text-large {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
// Text overflow utilities
|
||||
.text-ellipsis {
|
||||
@include text-ellipsis();
|
||||
}
|
||||
|
||||
.text-clip {
|
||||
overflow: hidden;
|
||||
text-overflow: clip;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-break {
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
Reference in New Issue
Block a user