vue-vben-admin/src/design/index.less

160 lines
2.6 KiB
Plaintext
Raw Normal View History

2020-12-29 23:37:40 +08:00
@import 'transition/index.less';
2020-09-28 20:19:10 +08:00
@import 'var/index.less';
@import 'public.less';
@import 'mixins.less';
@import 'ant/index.less';
2020-12-29 23:37:40 +08:00
@import 'global.less';
2020-09-28 20:19:10 +08:00
*,
*::before,
*::after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
2020-11-17 17:02:42 +08:00
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px white inset !important;
}
:-webkit-autofill {
transition: background-color 5000s ease-in-out 0s !important;
}
// Background color setting in full screen state in each browser
::backdrop,
html,
*:fullscreen,
*:-webkit-full-screen,
*:-moz-full-screen {
z-index: 1;
background-color: #fff !important;
}
2020-12-15 00:13:23 +08:00
html {
overflow: hidden;
}
2020-09-28 20:19:10 +08:00
html,
body {
width: 100%;
height: 100%;
overflow: visible !important;
overflow-x: hidden !important;
2020-09-28 20:19:10 +08:00
&.color-weak {
filter: invert(80%);
}
&.gray-mode {
filter: grayscale(100%);
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
}
}
body {
2020-11-25 23:20:30 +08:00
font-family: 'BlinkMacSystemFont,segoe ui,Microsoft YaHei,Arial,sans-serif,Helvetica Neue,Helvetica,Pingfang SC,Hiragino Sans GB,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji';
2020-09-28 20:19:10 +08:00
font-style: normal;
font-weight: normal;
line-height: 1.428571429; // 20/14
letter-spacing: normal;
word-spacing: normal;
text-align: left; // Fallback for where `start` is not supported
text-align: start;
text-decoration: none;
text-size-adjust: 100%;
text-shadow: none;
text-transform: none;
word-break: normal;
word-wrap: normal;
white-space: normal;
line-break: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 0.5em;
font-weight: 500;
color: @heading-color;
}
ul,
ol {
list-style: none;
}
li {
list-style-type: none;
}
img {
vertical-align: top;
border: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
a:focus,
a:active {
outline: none;
}
i,
em {
font-style: normal;
}
button,
div:focus {
outline: none !important;
}
a {
color: @link-color;
text-decoration: none;
cursor: pointer;
background-color: transparent; // remove the gray background on active links in IE 10.
outline: none;
transition: color 0.3s;
-webkit-text-decoration-skip: objects; // remove gaps in links underline in iOS 8+ and Safari 8+.
&:hover {
color: @link-hover-color;
}
&:active {
color: @link-active-color;
}
&:active,
&:hover {
text-decoration: none;
outline: 0;
}
&[disabled] {
color: @disabled-color;
pointer-events: none;
cursor: not-allowed;
}
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
vertical-align: baseline !important;
}