wqyblog_api_go/wqyblog_webui/css/style.css

260 lines
3.7 KiB
CSS

html {
color: #222;
font-size: 1em;
line-height: 1.4;
}
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
/* 去除a标签样式 */
a {
color: #323232;
border: none;
text-decoration: none;
}
/*
* 更好看的默认水平线
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*
* 删除音频、画布、iframe 之间的间隙,
* 图像、视频及其容器底部:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
/*
* 删除默认字段集样式。
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* 仅允许垂直调整文本区域的大小。
*/
textarea {
resize: vertical;
}
/* ==========================================================================
自定义样式
========================================================================== */
body {
margin: 0;
padding: 0;
}
.container {
width: 100vw;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
background-color: #f5f5f5;
margin-bottom: 1em;
width: 100vw;
box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
}
.header-title {
text-align: center;
padding: 1em;
font-size: 1.5rem;
margin: 0;
font-weight: bold;
color: #333;
}
.header-button-right {
position: absolute;
right: 5vw;
top: 30px;
}
.header-button-left {
position: absolute;
left: 5vw;
top: 30px;
}
/*
main
*/
.main {
flex: 1;
width: 100vw;
display: flex;
flex-direction: row;
}
.main-content {
height: 100%;
flex: 4;
}
.main-sidebar {
flex: 1;
}
/* ==========================================================================
辅助类
========================================================================== */
.hidden,
[hidden] {
display: none !important;
}
.visually-hidden {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
/* 1 */
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
white-space: inherit;
width: auto;
}
.invisible {
visibility: hidden;
}
.clearfix::before,
.clearfix::after {
content: "";
display: table;
}
.clearfix::after {
clear: both;
}
@media only screen and (min-width: 35em) {
/* 对满足条件的视口进行样式调整 */
}
@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* 针对高分辨率设备的风格调整 */
}
/* ==========================================================================
打印样式。
内联以避免额外的 HTTP 请求:
========================================================================== */
@media print {
*,
*::before,
*::after {
background: #fff !important;
color: #000 !important;
/* Black prints faster */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]::after {
content: " (" attr(href) ")";
}
abbr[title]::after {
content: " (" attr(title) ")";
}
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]::after,
a[href^="javascript:"]::after {
content: "";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}