html {
position: absolute;
top: 0;
left: 0;
/* min-width: 1240px; */
}
html,body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body{
font-size: 16px;
}
a {
color: inherit;
text-decoration: none;
display: block;
border: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-user-select: none;
-moz-user-focus: none;
-moz-user-select: none;
}
p>a{
display: inline-block;
}
a,
a:hover,
a:active,
a:visited,
a:link,
a:focus {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
outline: none;
/* background: none; */
text-decoration: none;
}
*[anchor] {
/* border: 2px solid red; */
}
*[data-href] {
cursor: pointer;
}
a[href="#"] {
/* opacity: 0.5; */
}
.disable,.disable:hover{
background-color:initial!important;
border-color: #ccc!important;
color: #ccc!important;
}
.no_data {
visibility: hidden;
}
.none {
display: none;
}
/*包含以下五种的链接*/
.none_a a {
text-decoration: none;
color: initial;
}
/*正常的未被访问过的链接*/
.none_a a:link {
text-decoration: none;
}
/*已经访问过的链接*/
.none_a a:visited {
text-decoration: none;
}
/*鼠标划过(停留)的链接*/
.none_a a:hover {
text-decoration: none;
}
/* 正在点击的链接,鼠标在元素上按下还没有松开*/
.none_a a:active {
text-decoration: none;
}
/* 获得焦点的时候 鼠标松开时显示的颜色*/
.none_a a:focus {
text-decoration: none;
}
::selection {
background: #f0f;
color: #f00;
}
::-moz-selection {
background: #f0f;
color: #f00;
}
::-webkit-selection {
background: #f0f;
color: #f00;
}
.test {
background-color: #eee;
border: 1px solid #000;
opacity: 0.4;
}
.toast {
padding: 10px 25px 10px 25px;
background: rgba(0, 0, 0, .5);
border-radius: 5px;
color: #ffffff;
font-size: .4rem;
text-align: center;
position: fixed;
left: 50%;
top: 40%;
transform: translate(-50%, -50%);
}
.radius{
border-radius: 50%;
}
.center {
text-align: center;
}
.opacity {
opacity: 0;
}
.active:active {
opacity: 0.8;
}
.white {
color: white;
}
.red {
color: red;
}
.black{
color: black;
}
.black_bg{
background-color: black;
}
.color_mian {
color: var(--color_mian);
}
.mask_bg{
background-color: rgba(0,0,0,0.3);
}
.bg_main {
background-color: var(--color_mian);
}
.img_mask_r {
position: relative;
}
.img_mask:before,
.img_mask_r:before {
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
content: '';
}
.bg_img {
/* background-image: url('/fcebcefc27b5438ac8cf1f56acb9fc72.jpg'); */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
background-color: rgb(232, 240, 254) !important;
background-image: none !important;
color: rgb(0, 0, 0) !important;
-webkit-text-fill-color: #000;
-webkit-box-shadow: 0 0 0px 1000px #fff inset;
transition: background-color 5000s ease-in-out 0s;
}
#root {
min-width: 1200px;
}
.all {
width: 100%;
height: 100%;
}
.fixed,
.fixed_loc {
position: fixed;
}
.relative {
position: relative;
}
.absolute,
.absolute_loc {
position: absolute;
}
.top,.absolute,.fixed{
top: 0;
}
.left,.absolute,.fixed{
left: 0;
}
.right{
right: 0;
}
.bottom {
bottom: 0;
}
.display{
display: block;
}
.flex,
.flex_wrap,
.flex_column,
.flex_c_c,
.space_between,
.space_around,
.justify_content,
.align_items,
.align_items_stretch {
display: flex;
}
.flex_wrap {
flex-wrap: wrap;
}
.flex_column {
flex-direction: column;
}
.justify_content,
.flex_c_c {
justify-content: center;
}
.align_items,
.flex_c_c {
align-items: center;
}
.align_items_stretch {
align-items: stretch;
}
.flex_grow {
flex-grow: 1;
}
.space_between {
justify-content: space-between;
}
.space_around {
justify-content: space-around;
}
.margin_auto {
margin: auto;
}
.margin_left,
.margin_level_auto {
margin-left: auto;
}
.margin_right,
.margin_level_auto {
margin-right: auto;
}
.margin_top,
.margin_vertical_auto {
margin-top: auto;
}
.margin_bottom,
.margin_vertical_auto {
margin-bottom: auto;
}
.margin_top_10 {
margin-top: 10%;
}
.margin_bottom_10 {
margin-bottom: 10%;
}
.margin_bottom_25 {
margin-bottom: 25%;
}
.margin_right16 {
margin-right: 16px;
}
.padding_right{
padding-right: 0px;
}
.padding_right_{
padding-right: 0px!important;
}
.width {
width: 100%;
}
.width_i {
width: 100%!important;
}
.width100{
width: 100px;
}
.height {
height: 100%;
}
.min_height {
min-height: 100%;
}
.min_width {
min-width: 100%;
}
.max_width{
max-width: 100%;
}
.max_height{
max-height:100% ;
}
.width_auto {
width: auto;
}
.height_auto {
height: auto;
}
/**
* 以下样式弹窗配合会是很好选择,例如外层占满屏幕不选中,内容居中选中
*/
.no_pointer_events { /* 无法选中 */
pointer-events: none;
}
.pointer_events { /* 选中 */
pointer-events: initial;
}
.pointer,
.pointers>div { /* 鼠标手柄 */
cursor: pointer;
}
.zindex10k {
z-index: 10000;
}
.zindex9k {
z-index: 9000;
}
.zindex8k {
z-index: 8000;
}
.zindex7k {
z-index: 7000;
}
.zindex6k {
z-index: 6000;
}
.zindex5k {
z-index: 5000;
}
.zindex4k {
z-index: 4000;
}
.zindex3k {
z-index: 3000;
}
.zindex2k {
z-index: 2000;
}
.zindex1k {
z-index: 1000;
}
.pointer:active>.shaky {
-webkit-animation-name: shaky-slow;
-ms-animation-name: shaky-slow;
animation-name: shaky-slow;
-webkit-animation-duration: 0.3s;
-ms-animation-duration: 0.3s;
animation-duration: 0.3s;
}
/**
* 抖动效果
*/
.pointer:active>.shaky:active {
-webkit-animation-name: none;
-ms-animation-name: none;
animation-name: none;
}
@-webkit-keyframes shaky-slow {
20% {
transform: translateX(4px);
}
40% {
transform: translateX(-4px);
}
60% {
transform: translateX(2px);
}
80% {
transform: translateX(-1px);
}
100% {
transform: translateX(0);
}
}
@keyframes shaky-slow {
20% {
transform: translateX(4px);
}
40% {
transform: translateX(-4px);
}
60% {
transform: translateX(2px);
}
80% {
transform: translateX(-1px);
}
100% {
transform: translateX(0);
}
}
.normal,
.normalAll,
.normalAll p,
.normalAll div {
word-wrap: normal;
text-wrap: normal;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.normalTwoAll,
.normalTwoAll p,
.normalTwoAll div {
word-wrap: normal;
text-wrap: normal;
white-space: nowrap;
}
.clamp,
.clampN p,
.clampN div,
.clampN {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.allLines {
text-align-last: justify;
text-align: justify;
text-justify: distribute-all-lines;
}
.word {
word-break: break-all;
}
前端经验-Flex弹性布局-弹框,快速布局,样式扩展无局限,微粒样式
最新推荐文章于 2023-06-15 18:30:29 发布