Skip to content

Commit

Permalink
新增功能 & 一些优化
Browse files Browse the repository at this point in the history
  • Loading branch information
NitroRCr committed Jun 3, 2022
1 parent 2a3f453 commit b837bb6
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 225 deletions.
130 changes: 57 additions & 73 deletions css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 66 additions & 81 deletions css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,105 +71,90 @@ h3 {
margin-top: 0;
}

.parallax-stage {

.main {
scroll-behavior: smooth;
perspective: 1px;
height: 100vh;
width: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: relative;
padding: 0;


.main {
position: relative;
transform-style: preserve-3d;
padding: 0;

> .row,
.route {
position: relative;
margin: 0;
overflow: hidden;
display: block;
.background {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: cover;
background-position: center;
transition: background 1s ease;
background-image: url(../img/dark-mobile-compressed/port-black.png);
filter: brightness(75%);

@media screen and (orientation: landscape) {
.container {
&.dark {
color: #fff;
background-image: url(../img/dark-PC-compressed/land-black.png);
}
}
}

.head {
color: #fff;
}
}
>.row,
.route {
position: relative;
margin: 0;
overflow: hidden;
display: block;

&.light {
}
.container {
&.dark {
color: #fff;

font-size: 15px;
.head {
color: #fff;
}
}

.bg-container {
transform-style: preserve-3d;
height: 100%;
width: 100%;
font-size: 15px;
}


&.row1 {
min-height: 100vh;

.letf-bottom-cornor {
position: absolute;
z-index: -2;

.background {
position: absolute;
margin: 0;
transition: background 0.8s ease;
transform: translate3d(-2vw, -100vh, -2px) scale(3.1);
transform-origin: top;
width: 100%;
background-size: cover;
background-position: center;
height: calc((100% - 100vh)/3 + 100vh);
transition: background 1s ease;
background-image: url(../img/dark-mobile-compressed/port-black.png);

@media screen and (orientation: landscape) {
.container {
background-image: url(../img/dark-PC-compressed/land-black.png);
}
}
}

.filter {
height: 100%;
width: 100%;
position: absolute;
background-color: rgba(0, 0, 0, 0.25);
}
left: 5px;
bottom: 0.4em;
color: #eee;
font-size: 0.9em;
line-height: 1.3;
}

&.row1 {
min-height: 100vh;
.letf-bottom-cornor {
position: absolute;
left: 5px;
bottom: 0.4em;
color: #eee;
font-size: 0.9em;
line-height: 1.3;
}
h3 {
margin-top: 1rem;
margin-bottom: 0;
}
h3 {
margin-top: 1rem;
margin-bottom: 0;
}
}

&.row3 {}
&.row2 {
background-color: #fff;
}
}

div.head {
font-weight: bold;
font-size: 2em;
color: #555;
line-height: 1.7;
margin: 5px 0;
&.row4 {
background-color: #fff;
}
}
}

div.head {
font-weight: bold;
font-size: 2em;
color: #555;
line-height: 1.7;
margin: 5px 0;
}


a.n-dark {
color: white;
padding: 5px 7px;
Expand All @@ -183,7 +168,7 @@ footer {
height: 8em;
width: 100%;

> div {
>div {
margin-top: 2.5em;
color: #777;
font-weight: bold;
Expand Down Expand Up @@ -212,4 +197,4 @@ footer {

.one-text-a {
color: #eee;
}
}
Loading

0 comments on commit b837bb6

Please sign in to comment.