2019-04-30 11:11:25 +08:00
|
|
|
/*
|
|
|
|
* utilities
|
|
|
|
*/
|
|
|
|
|
2019-05-15 16:10:20 +08:00
|
|
|
// background
|
2020-11-25 20:07:42 +08:00
|
|
|
@import './utilities/background/background-color';
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-11-25 20:07:42 +08:00
|
|
|
@import './utilities/border/border-color';
|
2020-11-27 17:29:49 +08:00
|
|
|
@import './utilities/border/border-radius';
|
|
|
|
@import './utilities/border/border-width';
|
|
|
|
@import './utilities/border/border-style';
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-25 23:47:36 +08:00
|
|
|
@import './utilities/layout/box-sizing';
|
2020-11-26 19:43:32 +08:00
|
|
|
@import './utilities/layout/clear';
|
2020-11-25 23:47:36 +08:00
|
|
|
@import './utilities/layout/display';
|
|
|
|
@import './utilities/layout/float';
|
2020-11-26 19:43:32 +08:00
|
|
|
@import './utilities/layout/overflow';
|
|
|
|
@import './utilities/layout/position';
|
|
|
|
@import './utilities/layout/top-right-bottom-left';
|
|
|
|
@import './utilities/layout/visibility';
|
|
|
|
@import './utilities/layout/z-index';
|
|
|
|
|
|
|
|
@import './utilities/flex/direction';
|
|
|
|
@import './utilities/flex/flex';
|
|
|
|
@import './utilities/flex/grow';
|
|
|
|
@import './utilities/flex/order';
|
|
|
|
@import './utilities/flex/shrink';
|
|
|
|
@import './utilities/flex/wrap';
|
|
|
|
|
|
|
|
@import './utilities/grid/auto-columns';
|
|
|
|
@import './utilities/grid/auto-flow';
|
|
|
|
@import './utilities/grid/auto-rows';
|
|
|
|
@import './utilities/grid/column-start-end';
|
|
|
|
@import './utilities/grid/columns';
|
|
|
|
@import './utilities/grid/gap';
|
|
|
|
@import './utilities/grid/row-start-end';
|
|
|
|
@import './utilities/grid/rows';
|
2020-11-25 23:47:36 +08:00
|
|
|
|
2020-11-27 00:11:42 +08:00
|
|
|
@import './utilities/box-alignment/align-content';
|
|
|
|
@import './utilities/box-alignment/align-items';
|
|
|
|
@import './utilities/box-alignment/align-self';
|
|
|
|
@import './utilities/box-alignment/justify-content';
|
|
|
|
@import './utilities/box-alignment/justify-items';
|
|
|
|
@import './utilities/box-alignment/justify-self';
|
|
|
|
@import './utilities/box-alignment/place-content';
|
|
|
|
@import './utilities/box-alignment/place-items';
|
|
|
|
@import './utilities/box-alignment/place-self';
|
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
@import './utilities/effect/box-shadow';
|
|
|
|
|
2020-11-25 20:07:42 +08:00
|
|
|
@import './utilities/spacing/margin';
|
|
|
|
@import './utilities/spacing/padding';
|
|
|
|
@import './utilities/spacing/space-between';
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-11-25 20:07:42 +08:00
|
|
|
@import './utilities/sizing/width';
|
|
|
|
@import './utilities/sizing/height';
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-11-27 00:11:42 +08:00
|
|
|
@import './utilities/typography/font-size';
|
2020-11-27 17:29:49 +08:00
|
|
|
@import './utilities/typography/font-style';
|
2020-11-27 00:11:42 +08:00
|
|
|
@import './utilities/typography/font-weight';
|
|
|
|
@import './utilities/typography/line-height';
|
2020-11-27 17:29:49 +08:00
|
|
|
@import './utilities/typography/list-style-type';
|
2020-11-27 00:11:42 +08:00
|
|
|
@import './utilities/typography/text-align';
|
2020-11-25 20:07:42 +08:00
|
|
|
@import './utilities/typography/text-color';
|
2020-11-27 17:29:49 +08:00
|
|
|
@import './utilities/typography/text-decoration';
|
|
|
|
@import './utilities/typography/text-transform';
|
|
|
|
@import './utilities/typography/whitespace';
|
|
|
|
@import './utilities/typography/word-break';
|
|
|
|
|
|
|
|
@import './utilities/widgets/label';
|
|
|
|
@import './utilities/widgets/hbox';
|
|
|
|
@import './utilities/widgets/vbox';
|
|
|
|
@import './utilities/widgets/thumb';
|
|
|
|
@import './utilities/widgets/scrollable';
|
|
|
|
@import './utilities/widgets/line';
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
.no-select {
|
2019-12-06 09:58:08 +08:00
|
|
|
user-select: none;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
@include media-breakpoint-up(sm) {
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Form-col {
|
|
|
|
&.w,
|
|
|
|
&.w-xs,
|
2020-01-06 17:25:17 +08:00
|
|
|
&.w-sm,
|
|
|
|
&.w-md,
|
|
|
|
&.w-lg {
|
2019-12-06 09:58:08 +08:00
|
|
|
flex-basis: unset;
|
|
|
|
flex-grow: unset;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// .img-full {
|
|
|
|
// width: 100%;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// & img {
|
|
|
|
// width: 100%;
|
|
|
|
// }
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// .hover-action {
|
|
|
|
// display: none;
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// .hover-rotate {
|
|
|
|
// transition: all 0.2s ease-in-out 0.1s;
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// .hover-anchor:hover,
|
|
|
|
// .hover-anchor:focus,
|
|
|
|
// .hover-anchor:active {
|
|
|
|
// & > .hover-action {
|
|
|
|
// display: inherit;
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// & > .hover-rotate {
|
|
|
|
// transform: rotate(90deg);
|
|
|
|
// }
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// .backdrop {
|
|
|
|
// position: absolute;
|
|
|
|
// top: 0;
|
|
|
|
// right: 0;
|
|
|
|
// bottom: 0;
|
|
|
|
// left: 0;
|
|
|
|
// z-index: 1050;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// &.fade {
|
|
|
|
// opacity: 0;
|
|
|
|
// }
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-11-27 17:29:49 +08:00
|
|
|
// &.in {
|
|
|
|
// opacity: 0.8;
|
|
|
|
// }
|
|
|
|
// }
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
|
|
.col-xs-2-4,
|
|
|
|
.col-sm-2-4,
|
|
|
|
.col-md-2-4,
|
|
|
|
.col-lg-2-4,
|
|
|
|
.col-xs-1-5,
|
|
|
|
.col-sm-1-5,
|
|
|
|
.col-md-1-5,
|
|
|
|
.col-lg-1-5 {
|
2019-12-06 09:58:08 +08:00
|
|
|
position: relative;
|
|
|
|
min-height: 1px;
|
|
|
|
padding-right: 15px;
|
|
|
|
padding-left: 15px;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 5/12 = 2.4
|
|
|
|
.col-xs-2-4 {
|
2019-12-06 09:58:08 +08:00
|
|
|
width: 20%;
|
|
|
|
float: left;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
// 8 / 12 = 1.5
|
|
|
|
.col-xs-1-5 {
|
2019-12-06 09:58:08 +08:00
|
|
|
width: 12.5%;
|
|
|
|
float: left;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-sm-2-4 {
|
|
|
|
width: 20%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-sm-1-5 {
|
|
|
|
width: 12.5%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
@media (min-width: 992px) {
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-md-2-4 {
|
|
|
|
width: 20%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-md-1-5 {
|
|
|
|
width: 12.5%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
@media (min-width: 1200px) {
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-lg-2-4 {
|
|
|
|
width: 20%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.col-lg-1-5 {
|
|
|
|
width: 12.5%;
|
|
|
|
float: left;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// sm
|
2019-05-15 16:10:20 +08:00
|
|
|
@media (min-width: 768px) and (max-width: 991px) {
|
2019-12-06 09:58:08 +08:00
|
|
|
.hidden-sm.show {
|
|
|
|
display: inherit !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.no-m-sm {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.no-padder-sm {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2020-06-08 10:17:28 +08:00
|
|
|
.visible-xs {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
/*phone*/
|
2019-05-15 16:10:20 +08:00
|
|
|
@media (max-width: 767px) {
|
2020-06-08 10:17:28 +08:00
|
|
|
.visible-xs {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.w-auto-xs {
|
|
|
|
width: auto;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.shift {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.shift.in {
|
|
|
|
display: block !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.text-center-xs {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.text-left-xs {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.text-right-xs {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.no-border-xs {
|
|
|
|
border-width: 0;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.pull-none-xs {
|
|
|
|
float: none !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.pull-right-xs {
|
|
|
|
float: right !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.pull-left-xs {
|
|
|
|
float: left !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.dropdown-menu.pull-none-xs {
|
|
|
|
left: 0;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.hidden-xs.show {
|
|
|
|
display: inherit !important;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.wrapper-lg,
|
|
|
|
.wrapper-md {
|
|
|
|
padding: 15px;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.padder-lg,
|
|
|
|
.padder-md {
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.no-m-xs {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.no-padder-xs {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
}
|