Files
Homepage_PC_Xanh_2021/scss/main.scss
2021-03-24 10:47:36 +07:00

296 lines
8.5 KiB
SCSS

@import url("https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css");
// @import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
body{
color:#222;
font-family: 'Roboto', sans-serif;
background:#f1f1f1 ;
position:relative;
min-width: 1200px;
font-size: 14px;
}
.bg-grey{
background: #E5E5E5;
}
a{
color: #222;
text-decoration: none;
transition: all .3s ease;
}
a:hover {
text-decoration: none;
transition: all .3s ease;
}
.ul, .ol {
margin: 0;
padding: 0;
list-style: none;
}
img {
max-width: 100%;
height: auto;
}
b{
font-weight: bold;
}
.clearfix::after {
content: '';
clear: both;
display: block;
}
.clear {
clear: both;
}
button, input, select {
outline: none !important;
}
table{
width: 100% !important;
-webkit-overflow-scrolling: touch;
}
@media screen and (-webkit-min-device-pixel-ratio: 0){
select, textarea, input {
font-size: 16px;
}
}
@media(min-width: 1200px){
select, textarea, input {
font-size: 14px;
}
}
iframe {
max-width: 100%;
}
.text-10{
font-size: 10px;
}
.text-11{
font-size: 11px;
}
.text-12{
font-size: 12px;
}
.text-13{
font-size: 13px;
}
.text-14{
font-size: 14px;
}
.text-15{
font-size: 15px;
}
.text-16{
font-size: 16px;
}
.text-17{
font-size: 17px;
}
.text-18{
font-size: 18px;
}
.text-20{
font-size: 20px;
}
.text-22{
font-size: 22px;
}
.text-24{
font-size: 24px;
}
.blue{
color: #0083FF;
}
.red{
color: #ed2124;
}
.grey{
color: #999;
}
.bg-blue{
background: #0083FF;
}
.font-300{
font-weight: 300;
}
.font-500{
font-weight: 500;
}
.font-600{
font-weight: 600;
}
.underline{
text-decoration: underline;
}
.fit-img{
width: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
max-width: 100%;
max-height: 100%;
margin: auto;
display: block;
}
@keyframes tada{
0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1) }
10%,20%{-webkit-transform:scale(.9) rotate(-8deg);-ms-transform:scale(.9) rotate(-8deg);transform:scale(.9) rotate(-8deg) }
30%,50%,70%{-webkit-transform:scale(1.3) rotate(8deg);-ms-transform:scale(1.3) rotate(8deg);transform:scale(1.3) rotate(8deg) }
40%,60%{-webkit-transform:scale(1.3) rotate(-8deg);-ms-transform:scale(1.3) rotate(-8deg);transform:scale(1.3) rotate(-8deg) }
100%,80%{-webkit-transform:scale(1) rotate(0);-ms-transform:scale(1) rotate(0);transform:scale(1) rotate(0) }
}
@-webkit-keyframes phonering {
0% {
-webkit-transform: rotate(0) scale(1) skew(1deg);
}
10% {
-webkit-transform: rotate(-25deg) scale(1) skew(1deg);
}
20% {
-webkit-transform: rotate(25deg) scale(1) skew(1deg);
}
30% {
-webkit-transform: rotate(-25deg) scale(1) skew(1deg);
}
40% {
-webkit-transform: rotate(25deg) scale(1) skew(1deg);
}
50% {
-webkit-transform: rotate(0) scale(1) skew(1deg);
}
100% {
-webkit-transform: rotate(0) scale(1) skew(1deg);
}
}
// checkbox
.label-container{display:block;position:relative;padding-left:30px;margin-bottom:14px;cursor:pointer;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
.label-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0;}
.label-container .checkmark{position:absolute;top:2px;left:0;height:15px;width:15px;border:1px solid #bbb;background-color:#fff;border-radius:3px;}
.label-container:hover input ~ .checkmark{border-color:#14903f;}
.label-container input:checked ~ .checkmark{background-color:#d58430;border-color:#d58430;}
.checkmark:after{content:"";position:absolute;display:none;}
.label-container input:checked ~ .checkmark:after{display:block;}
.label-container .checkmark:after{left: 4px;top: 1px;width: 6px;height: 9px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}
// radio
.radio-container{position:relative;padding-left:25px;cursor:pointer;user-select:none;margin:0 40px 0 0;}
.radio-container input{position:absolute;opacity:0;cursor:pointer;}
.radio-container .checkmark{position:absolute;top:2px;left:0px;height:16px;width:16px;background-color:#fff;border-radius:50%;border:2px solid #999;}
.radio-container input:checked ~ .checkmark{background-color:#fff;border:2px solid #008445;}
.checkmark:after{content:"";position:absolute;display:none;}
.radio-container input:checked ~ .checkmark:after{display:block;}
.radio-container .checkmark:after{top:3px;left:3px;width:6px;height:6px;border-radius:50%;background:#008445;}
.bg-popup{display: none;position: fixed;top:0;left: 0;right: 0;bottom: 0;cursor: grab;background: rgba(0, 0, 0, 0.5);z-index: 99}
.autocomplete-suggestions{position:absolute;width: 100%;;border:solid 1px #ddd;right:0;margin-top:2px;max-height:300px;overflow:auto;display:none;background:#fff;z-index:999;}
.autocomplete-suggestions a{display:block;padding:10px;overflow:hidden;}
.autocomplete-suggestions a img{width:60px;float:left;}
.autocomplete-suggestions a .info{display:block;margin-left:65px;}
.autocomplete-suggestions a .info .name{display:block;color:#333;}
.autocomplete-suggestions a .info .price{color:#ec1c24;}
.autocomplete-suggestions a:hover{background-color:#f5f5f5;}
.autocomplete-suggestions::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);background-color: #f1f1f1;border-radius: 10px;}
.autocomplete-suggestions::-webkit-scrollbar{width: 6px;background-color: #f1f1f1;}
.autocomplete-suggestions::-webkit-scrollbar-thumb{border-radius: 10px;background-color: #ccc;}
.icon-star{background-image:url(../images/star_sprite.png);width: 96px;height: 19px;vertical-align:text-bottom;display:inline-block;background-repeat:no-repeat;}
.icon-star.star-0{background-position:0 -109px;}
.icon-star.star-1{background-position:0 -88px;}
.icon-star.star-2{background-position:0 -66px;}
.icon-star.star-3{background-position:0 -42px;}
.icon-star.star-4{background-position:0 -21px;}
.icon-star.star-5{background-position:0 0}
.hover-img {
a{
position:relative;
overflow:hidden;
display: block;
&::before{
content:"";
position:absolute;
top:0;
left:-15%;
bottom:0;
width:0;
height:100%;
background-color:rgba(255, 255, 255, 0.5);
transition:none;
transform:skewX(-25deg);
}
&:hover::before{
width:120%;
background-color:rgba(255, 255, 255, 0);
transition:all .45s ease-out;
z-index:2;
}
}
}
.container {
padding: 0 10px;
max-width: 1230px;
min-width: 1230px;
}
.row {
margin: 0 -10px;
}
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
padding: 0 10px;
}
#breadcrumb{
margin: 0 0 12px 0;
position: relative;
font-size: 13px;
li{
float: left;
position: relative;
z-index: 1;
&::after{
content:'/';
padding: 0 8px;
}
&:last-child{
a{
color: #848484;
}
&::after{
content: none;
}
}
a{
color: #0083FF;
font-weight: 500;
font-size: 15px;
line-height: 18px;
}
}
h1{
font-size: inherit;
font-weight: inherit;
margin: 0;
line-height: inherit;
}
}
.paging {
text-align: center;
margin: 16px 0 26px 0;
a{
display: inline-block;
margin-right: 3px;
width: 35px;
height: 31px;
line-height: 31px;
border-radius: 5px;
border: 1px solid #edeef2;
color: #888;
background: #fff;
&:hover, &.current{
color: #fff;
background: #0083FF;
border-color: #0083FF;
}
}
}