hexo-theme-keep/source/css/layout/_partial/first-screen.styl

54 lines
976 B
Stylus
Raw Normal View History

$pc-font-size = 2rem;
$tablet-font-size = 1.8rem;
2020-11-13 14:43:22 +08:00
.first-screen-container {
position: relative;
box-sizing: border-box;
width: 100%;
overflow: hidden;
background: url("/images/bg.svg") center center / cover no-repeat;
2020-11-15 22:06:32 +08:00
.content {
2020-11-19 11:58:54 +08:00
position: relative;
2020-11-15 22:06:32 +08:00
padding: 30px;
2020-11-19 11:58:54 +08:00
width: 80%;
height: 80%;
2020-11-15 22:06:32 +08:00
.description {
font-weight: bold;
font-size: $pc-font-size;
line-height: 1.6;
text-align: center;
+keep-tablet() {
font-size: $tablet-font-size;
}
2020-11-15 22:06:32 +08:00
}
2020-11-27 14:49:53 +08:00
.s-icon-list {
2020-11-15 22:06:32 +08:00
position: absolute;
2020-11-19 11:58:54 +08:00
bottom: $component-interspace;
font-size: $pc-font-size * 0.9;
2020-11-15 22:06:32 +08:00
left: 50%;
transform: translateX(-50%);
+keep-tablet() {
font-size: $tablet-font-size * 0.9;
}
2020-11-27 14:49:53 +08:00
.s-icon-item {
2020-11-15 22:06:32 +08:00
float: left;
margin-right: 25px;
cursor: pointer;
line-height: 1.6;
2020-11-15 22:06:32 +08:00
&:last-child {
margin-right: 0;
}
}
}
}
2020-11-13 14:43:22 +08:00
}