feat:新增全局初始化样式
This commit is contained in:
@@ -1,190 +1,194 @@
|
|||||||
// @import './variables.module.scss';
|
/**
|
||||||
// @import './mixin.scss';
|
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
|
||||||
// @import './transition.scss';
|
* http://cssreset.com
|
||||||
// @import './element-ui.scss';
|
* 全局初始化样式
|
||||||
// @import './sidebar.scss';
|
*/
|
||||||
// @import './btn.scss';
|
html,
|
||||||
// @import './ruoyi.scss';
|
body,
|
||||||
|
div,
|
||||||
// body {
|
span,
|
||||||
// height: 100%;
|
applet,
|
||||||
// margin: 0;
|
object,
|
||||||
// -moz-osx-font-smoothing: grayscale;
|
iframe,
|
||||||
// -webkit-font-smoothing: antialiased;
|
p,
|
||||||
// text-rendering: optimizeLegibility;
|
blockquote,
|
||||||
// font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
|
pre,
|
||||||
// }
|
a,
|
||||||
|
abbr,
|
||||||
// label {
|
acronym,
|
||||||
// font-weight: 700;
|
address,
|
||||||
// }
|
big,
|
||||||
|
cite,
|
||||||
// html {
|
code,
|
||||||
// height: 100%;
|
del,
|
||||||
// box-sizing: border-box;
|
dfn,
|
||||||
// }
|
em,
|
||||||
|
img,
|
||||||
// #app {
|
ins,
|
||||||
// height: 100%;
|
kbd,
|
||||||
// }
|
q,
|
||||||
|
s,
|
||||||
// *,
|
samp,
|
||||||
// *:before,
|
small,
|
||||||
// *:after {
|
strike,
|
||||||
// box-sizing: inherit;
|
strong,
|
||||||
// }
|
sub,
|
||||||
|
sup,
|
||||||
// .no-padding {
|
tt,
|
||||||
// padding: 0px !important;
|
var,
|
||||||
// }
|
b,
|
||||||
|
u,
|
||||||
// .padding-content {
|
i,
|
||||||
// padding: 4px 0;
|
center,
|
||||||
// }
|
dl,
|
||||||
|
dt,
|
||||||
// a:focus,
|
dd,
|
||||||
// a:active {
|
ol,
|
||||||
// outline: none;
|
ul,
|
||||||
// }
|
li,
|
||||||
|
fieldset,
|
||||||
// a,
|
form,
|
||||||
// a:focus,
|
label,
|
||||||
// a:hover {
|
legend,
|
||||||
// cursor: pointer;
|
table,
|
||||||
// color: inherit;
|
caption,
|
||||||
// text-decoration: none;
|
tbody,
|
||||||
// }
|
tfoot,
|
||||||
|
thead,
|
||||||
// div:focus {
|
tr,
|
||||||
// outline: none;
|
th,
|
||||||
// }
|
td,
|
||||||
|
article,
|
||||||
// .fr {
|
aside,
|
||||||
// float: right;
|
canvas,
|
||||||
// }
|
details,
|
||||||
|
embed,
|
||||||
// .fl {
|
figure,
|
||||||
// float: left;
|
figcaption,
|
||||||
// }
|
footer,
|
||||||
|
header,
|
||||||
// .pr-5 {
|
menu,
|
||||||
// padding-right: 5px;
|
nav,
|
||||||
// }
|
output,
|
||||||
|
ruby,
|
||||||
// .pl-5 {
|
section,
|
||||||
// padding-left: 5px;
|
summary,
|
||||||
// }
|
time,
|
||||||
|
mark,
|
||||||
// .block {
|
audio,
|
||||||
// display: block;
|
video,
|
||||||
// }
|
input {
|
||||||
|
margin: 0;
|
||||||
// .pointer {
|
padding: 0;
|
||||||
// cursor: pointer;
|
border: 0;
|
||||||
// }
|
font-size: 100%;
|
||||||
|
font-weight: normal;
|
||||||
// .inlineBlock {
|
vertical-align: baseline;
|
||||||
// display: block;
|
outline: none;
|
||||||
// }
|
|
||||||
|
|
||||||
// .clearfix {
|
|
||||||
// &:after {
|
|
||||||
// visibility: hidden;
|
|
||||||
// display: block;
|
|
||||||
// font-size: 0;
|
|
||||||
// content: " ";
|
|
||||||
// clear: both;
|
|
||||||
// height: 0;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// aside {
|
|
||||||
// background: #eef1f6;
|
|
||||||
// padding: 8px 24px;
|
|
||||||
// margin-bottom: 20px;
|
|
||||||
// border-radius: 2px;
|
|
||||||
// display: block;
|
|
||||||
// line-height: 32px;
|
|
||||||
// font-size: 16px;
|
|
||||||
// font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
||||||
// color: #2c3e50;
|
|
||||||
// -webkit-font-smoothing: antialiased;
|
|
||||||
// -moz-osx-font-smoothing: grayscale;
|
|
||||||
|
|
||||||
// a {
|
|
||||||
// color: #337ab7;
|
|
||||||
// cursor: pointer;
|
|
||||||
|
|
||||||
// &:hover {
|
|
||||||
// color: rgb(32, 160, 255);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// .components-container {
|
|
||||||
// margin: 30px 50px;
|
|
||||||
// position: relative;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// .pagination-container {
|
|
||||||
// margin-top: 30px;
|
|
||||||
// }
|
|
||||||
|
|
||||||
.text-center {
|
|
||||||
text-align: center
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// .sub-navbar {
|
body {
|
||||||
// height: 50px;
|
/* px-to-viewport-ignore-next */
|
||||||
// line-height: 50px;
|
min-width: 1024px; /* px-to-viewport-ignore */
|
||||||
// position: relative;
|
}
|
||||||
// width: 100%;
|
html {
|
||||||
// text-align: right;
|
/* px-to-viewport-ignore-next */
|
||||||
// padding-right: 20px;
|
min-width: 1024px; /* px-to-viewport-ignore */
|
||||||
// transition: 600ms ease position;
|
}
|
||||||
// background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
|
|
||||||
|
|
||||||
// .subtitle {
|
/* HTML5 display-role reset for older browsers */
|
||||||
// font-size: 20px;
|
article,
|
||||||
// color: #fff;
|
aside,
|
||||||
// }
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
// &.draft {
|
blockquote,
|
||||||
// background: #d0d0d0;
|
q {
|
||||||
// }
|
quotes: none;
|
||||||
|
}
|
||||||
|
|
||||||
// &.deleted {
|
blockquote::before,
|
||||||
// background: #d0d0d0;
|
blockquote::after,
|
||||||
// }
|
q::before,
|
||||||
// }
|
q::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
// .link-type,
|
table {
|
||||||
// .link-type:focus {
|
border-collapse: collapse;
|
||||||
// color: #337ab7;
|
border-spacing: 0;
|
||||||
// cursor: pointer;
|
}
|
||||||
|
|
||||||
// &:hover {
|
/* custom */
|
||||||
// color: rgb(32, 160, 255);
|
li {
|
||||||
// }
|
list-style: none;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// .filter-container {
|
button {
|
||||||
// padding-bottom: 10px;
|
outline: none;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
// .filter-item {
|
.el-textarea__inner::placeholder {
|
||||||
// display: inline-block;
|
color: #999 !important;
|
||||||
// vertical-align: middle;
|
}
|
||||||
// margin-bottom: 10px;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //refine vue-multiselect plugin
|
.el-input__inner::placeholder {
|
||||||
// .multiselect {
|
color: #999 !important;
|
||||||
// line-height: 16px;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
// .multiselect--active {
|
input::-webkit-input-placeholder {
|
||||||
// z-index: 1000 !important;
|
color: #999 !important;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
.el-input__inner::-webkit-input-placeholder {
|
||||||
|
color: #999 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::placeholder {
|
||||||
|
color: #999 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea::placeholder {
|
||||||
|
color: #999 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#app {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
font-family: Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif,
|
||||||
|
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbo;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* //滚动条样式 */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
/* 滚动槽 */
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
/* 滚动条滑块 */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 10px;
|
||||||
|
background: rgb(150, 175, 234);
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb:window-inactive {
|
||||||
|
background: rgba(249, 222, 222, 0.6);
|
||||||
|
}
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ const handleGitClick = () => {
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.header {
|
.header {
|
||||||
padding: 0 100px;
|
|
||||||
width: 1300px;
|
width: 1300px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="common-layout">
|
<div class="common-layout">
|
||||||
<el-container>
|
<el-container class="common-container">
|
||||||
<el-header
|
<el-header
|
||||||
class="common-header"
|
class="common-header"
|
||||||
ref="header"
|
ref="header"
|
||||||
@@ -46,6 +46,10 @@ const handleScroll = () => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
&-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
&-header {
|
&-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
Reference in New Issue
Block a user