Files
genshin-impart/webs/BabaraWeb/babarastyle.css
T
2024-04-07 22:09:43 +08:00

479 lines
7.9 KiB
CSS

* {
margin: 0;
padding: 0;
/* disable double_tap zoom on mobile devices */
-ms-touch-action: manipulation;
touch-action: manipulation;
/* strange margin-right occurs when vw<500px */
overflow-x: hidden;
}
body {
/* 底部颜色 */
background-color: rgba(233, 233, 233);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", 'Roboto', sans-serif;
font-size: 1.5em;
/* 顶部文字颜色 */
color: #2c5f74;
/* 禁用右键和选中 */
-webkit-user-select: none;
/* Chrome, Safari, Opera */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
}
/* 欢迎页面 */
#welcome-page {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(36, 110, 194, 0.8);
color: rgb(255, 254, 254);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
opacity: 1;
transition: opacity 0.5s;
}
#welcome-page img {
width: 30%;
}
/* 功能区大盒子 */
.buttons-container {
position: fixed;
top: 20px;
left: 20px;
display: flex;
align-items: center;
z-index: 8888;
}
/* 播放按钮 */
.volume-control {
width: 40px;
height: 40px;
background-color: rgba(241, 243, 244, 0.6);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
/* 按钮和右边按钮间隔20px */
margin-right: 20px;
}
.volume-control:hover {
background-color: #e5e2e2;
}
.volume-icon {
width: 24px;
height: 24px;
background-image: url("./img/volume_icon.png");
background-size: cover;
animation: rotate-icon 5s infinite linear;
}
@keyframes rotate-icon {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.wrapper {
position: relative;
}
#wrapper-background {
position: absolute;
width: 100%;
height: 100%;
background-image: url("img/background.gif");
background-repeat: no-repeat;
background-position: 50%;
background-size: contain;
z-index: -30;
}
#wrapper-background-filter {
/* 背景颜色 */
background-color: rgba(66, 156, 208, 0.9);
position: absolute;
width: 100%;
height: 100%;
z-index: -20;
}
.preload {
position: absolute;
left: 0;
top: 0;
visibility: hidden;
}
#content {
margin: 2vh auto;
width: 80vw;
}
h1 {
text-align: center;
font-size: 3em;
font-weight: bold;
}
h2 {
text-align: center;
font-weight: bold;
font-size: 1.5em;
}
hr {
/* 分割线 */
border-bottom: 6px dashed rgb(227, 226, 223);
border-top: none;
border-left: none;
border-right: none;
}
#title-container {
display: flex;
justify-content: center;
}
#page-title {
text-align: left;
}
/* logo */
#title-img {
height: 3.8em;
}
@keyframes shake {
0% {
transform: rotate(-5deg);
}
50% {
transform: rotate(5deg);
}
100% {
transform: rotate(-5deg);
}
}
.shake {
animation: shake 1s linear infinite;
}
#container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
margin-bottom: 10px;
text-align: center;
}
#container select {
margin: 0 10px;
}
#language-selector,
#mode-selector {
width: 200px;
height: 40px;
/* 选择框颜色 */
background-color: #dee6eb;
border: none;
border-radius: 5px;
font-size: 16px;
text-align: center;
text-align-last: center;
padding: 10px;
margin: 0 10px;
color: rgb(38, 36, 36);
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
outline: none;
}
#language-selector:hover,
#mode-selector:hover {
box-shadow: 0 0 10px #dee6eb;
}
#language-selector option {
text-align: center;
background-color: #dee6eb;
color: rgb(118, 114, 114);
}
#subtitle-seperator {
margin-bottom: 10px;
}
#counter-container {
text-align: center;
font-weight: bold;
margin: 64px 0;
}
#counter-container>p {
text-shadow: #dee6eb 0 0 10px, #dee6eb 0 0 10px, #dee6eb 0 0 10px, #dee6eb 0 0 10px, #dee6eb 0 0 10px;
}
/* 全球计数器文字颜色 */
#global-counter {
color: #2d9cd7;
font-size: 4em;
text-shadow:
-1px -1px 0 black,
1px -1px 0 black,
-1px 1px 0 black,
1px 1px 0 black; /* 描边效果 */
}
/* 本地计数器文字颜色 */
#local-counter {
color: #2d9cd7;
font-size: 1.5em;
}
#counter-button {
/* 动画触发按钮颜色 */
background-color: #19457e;
border: none;
border-radius: 16px;
color: rgb(203, 213, 222);
padding: 16px 32px;
text-decoration: none;
font-size: 1em;
font-family: 'Roboto', sans-serif;
font-weight: bold;
margin-top: 16px;
position: relative;
overflow: hidden;
box-shadow: 6px 7px 40px -4px rgba(43, 42, 42, 0.2);
cursor: pointer;
transition: background-color 0.1s ease-in-out, scale 0.1s cubic-bezier(0.075, 0.82, 0.165, 1);
}
/* 动画触发按钮的悬挂颜色 */
#counter-button:hover {
background-color: #10305d;
}
#counter-button:active {
scale: 0.95;
}
#counter-button span {
position: absolute;
border-radius: 50%;
background-color: #ffffff50;
width: 100px;
height: 100px;
margin-top: -50px;
margin-left: -50px;
animation: ripple 1s;
opacity: 0;
}
@keyframes ripple {
from {
opacity: 1;
transform: scale(0);
}
to {
opacity: 0;
transform: scale(10);
}
}
#footer {
background-color: rgb(253, 250, 244);
color: black;
padding: 16px 10vw;
display: flex;
gap: 30px;
align-items: center;
justify-content: center;
}
/* babara banner 图片样式 */
#babara-card {
min-width: 256px;
max-width: 720px;
height: auto;
border-top-left-radius: 2% 3.5%;
border-top-right-radius: 2% 3.5%;
border-bottom-left-radius: 2% 3.5%;
border-bottom-right-radius: 2% 3.5%;
}
.footer-icon {
display: inline-block;
vertical-align: middle;
font-size: 2em;
}
#twitter-footer-icon {
color: #1d9bf0;
}
#github-footer-icon {
color: #000000;
}
.footer-icon-text {
display: inline-block;
vertical-align: middle;
font-weight: bold;
margin-left: 6px;
}
/* #footer-repository-text {
margin-top: 32px;
margin-bottom: 16px;
} */
@media screen and (max-width: 2240px) {
.grid-item {
width: calc(20% - 10px);
}
}
@media screen and (max-width: 1920px) {
.grid-item {
width: calc(25% - 10px);
}
}
@media screen and (max-width: 1512px) {
body {
font-size: 1.25em;
}
#subtitle-seperator {
margin-top: 3px;
margin-bottom: 11px;
}
}
@media screen and (max-width: 1280px) {
.grid-item {
width: calc(100% / 3 - 10px);
}
#footer {
flex-wrap: wrap;
}
#footer-text {
text-align: center;
}
#footer-header-text {
margin-bottom: 8px;
}
#footer-repository-text {
margin-top: 16px;
margin-bottom: 8px;
}
}
@media screen and (max-width: 1265px) {
body {
font-size: 1em;
}
#subtitle-seperator {
margin-top: 6px;
margin-bottom: 12px;
}
}
@media screen and (max-width: 854px) {
.grid-item {
width: calc(20% - 10px);
}
}
@media screen and (max-width: 510px) {
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.25em;
}
#subtitle-seperator {
margin-top: 8px;
margin-bottom: 13px;
}
}
@media screen and (max-width: 500px) {
.grid-item {
width: calc(100% - 10px);
}
}
@media screen and (max-width: 430px) {
h1 {
font-size: 2em;
}
#subtitle-seperator {
margin-top: 10px;
}
}
#access-via-mirror,
#access-via-pages {
font-size: small;
}