This commit is contained in:
pbao9
2026-01-30 08:23:19 +07:00
parent a3c3f4a577
commit 8b4c93e820
210 changed files with 71688 additions and 590 deletions
+209
View File
@@ -0,0 +1,209 @@
// Animation mixins
@keyframes dropdownAnimation {
from {
opacity: 0;
transform: translate3d(0, 20px, 0);
}
to {
opacity: 1;
transform: none;
transform: translate3d(0, 0px , 0);
}
}
.dropdownAnimation {
-webkit-animation-name: dropdownAnimation;
animation-name: dropdownAnimation;
-webkit-animation-duration: 0.2s;
animation-duration: 0.2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.fadeOut {
animation-name: fadeOUt;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translate3d(0, 100%, 0);
}
to {
opacity: 1;
transform: none;
}
}
.fadeInUp {
animation-name: fadeInUp;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.infinite-spin {
animation-name: spin;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@mixin transition($settings) {
-webkit-transition: $settings;
-moz-transition: $settings;
-ms-transition: $settings;
-o-transition: $settings;
transition: $settings;
}
@keyframes pulse-1{
$dim : 7px;
$mult : 4;
0% {
opacity: 1;
width: $dim;
height: $dim;
left: 0;
top: 0;
}
95% {
opacity: 0.1;
left: -(($dim * $mult) - $dim) * .5;
top: -(($dim * $mult) - $dim) * .5;
width: $dim * $mult;
height: $dim * $mult;
}
100% {
opacity: 0;
width: $dim;
height: $dim;
left: 0;
top: 0;
}
}
.pulse-1 { // renamed 'pulse' to 'pulse-1' to avoid dropzone plugin pulse animation conflict
animation-name: pulse-1;
animation-duration: .9s;
animation-iteration-count: infinite;
animation-timing-function: ease-out;
}
// Sidebar hamburger - START
@keyframes hamburger-animation-top {
0% {
top: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
50% {
top: 6px;
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
top: 6px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
}
@keyframes hamburger-animation-top-2 {
0% {
top: 6px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
50% {
top: 6px;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
top: 0;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@keyframes hamburger-animation-bottom {
0% {
bottom: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
50% {
bottom: 6px;
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
bottom: 6px;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
}
@keyframes hamburger-animation-bottom-2 {
0% {
bottom: 6px;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
50% {
bottom: 6px;
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
bottom: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
}
@keyframes hamburger-animation-scaled {
50% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(0);
transform: scale(0);
}
}
@keyframes hamburger-animation-scaled-2 {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
50% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
// Sidebar hamburger - END
+69
View File
@@ -0,0 +1,69 @@
// Button mixins
@mixin social-button($color) {
background: $color;
color: $white;
.btn-check:checked + &,
:not(.btn-check) + &:active,
&:first-child:active,
&.active,
&:hover,
&:focus {
background: darken($color, 10%);
color: $white;
border-color: $color;
}
&.btn-social-icon-text {
padding: 0 1.5rem 0 0;
background: lighten($color, 10%);
i {
background: $color;
padding: .75rem;
display: inline-block;
margin-right: 1.5rem;
}
}
}
@mixin social-outline-button($color) {
border: 1px solid $color;
color: $color;
&:hover {
background: $color;
color: $white;
}
}
@mixin button-inverse-variant($color, $color-hover: $white) {
background-color: rgba($color, 0.2);
background-image: none;
border-color: rgba($color, 0);
&:not(.btn-inverse-light) {
color: $color;
}
&:hover,
:not(.btn-check) + &:active,
&:first-child:active,
&.active,
&:active,
.show > &.dropdown-toggle {
background-color: rgba($color, 0.3);
border-color: rgba($color, 0);
}
&.focus,
&:focus {
// box-shadow: 0 0 0 3px rgba($color, .5);
background-color: rgba($color, 0.3);
border-color: transparent;
}
&.disabled,
&:disabled {
color: $color;
background-color: transparent;
}
}
+72
View File
@@ -0,0 +1,72 @@
// Miscellaneous Mixins
// general transform
@mixin transform($transforms) {
-moz-transform: $transforms;
-o-transform: $transforms;
-ms-transform: $transforms;
-webkit-transform: $transforms;
transform: $transforms;
}
// rotate
@mixin rotate ($deg) {
@include transform(rotate(#{$deg}deg));
}
// scale
@mixin scale($scale) {
@include transform(scale($scale));
}
// translate
@mixin translate ($x, $y) {
@include transform(translate($x, $y));
}
// skew
@mixin skew ($x, $y) {
@include transform(skew(#{$x}deg, #{$y}deg));
}
//transform origin
@mixin transform-origin ($origin) {
moz-transform-origin: $origin;
-o-transform-origin: $origin;
-ms-transform-origin: $origin;
-webkit-transform-origin: $origin;
transform-origin: $origin;
}
//Ellipsis
%ellipsor{
text-overflow: ellipsis;
overflow: hidden;
max-width:100%;
white-space: nowrap;
}
// Placeholder
@mixin placeholder {
&::-webkit-input-placeholder {
@content
}
&:-moz-placeholder {
@content
}
&::-moz-placeholder {
@content
}
&:-ms-input-placeholder {
@content
}
}
%ellipsor {
text-overflow: ellipsis;
overflow: hidden;
max-width: 100%;
white-space: nowrap;
}
@mixin ellipsor {
text-overflow: ellipsis;
overflow: hidden;
max-width: 100%;
white-space: nowrap;
}