PaiGram/resources/genshin/daily_material/style.css

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

341 lines
6.1 KiB
CSS
Raw Normal View History

2022-09-17 16:28:51 +00:00
@font-face {
font-family: 'HYWH';
src: url('../../fonts/HYWenHei-85W.ttf') format('truetype');
2022-09-17 16:28:51 +00:00
}
:root {
--bg-color: #EBE5D9;
--font-color: #514E49;
--color-1: #D6BA92;
--shadow: #726C65;
2022-09-17 16:28:51 +00:00
}
* {
font-family: 'HYWH', serif;
color: var(--font-color);
background-repeat: no-repeat;
}
body {
margin: 0;
padding: 0;
}
.container {
2023-10-12 13:06:09 +00:00
width: 2208px;
2022-09-17 16:28:51 +00:00
background-color: var(--bg-color);
position: absolute;
left: 50%;
transform: translateX(-50%);
padding: 15px 30px;
}
.container > div.title {
width: 100%;
font-size: 40px;
text-align: center;
}
.user-info {
margin-top: 20px;
font-size: 25px;
border-left-color: var(--color-1);
border-left-style: solid;
border-left-width: 10px;
padding: 0;
font-style: italic;
}
.user-info > span:last-child {
float: right;
}
.box {
width: 100%;
margin: 10px 0;
}
.title {
font-size: 30px;
width: 100%;
text-align: center;
position: relative;
margin: 20px 0;
}
.area {
width: calc(100% - 20px);
padding: 0 10px;
2022-09-20 15:00:08 +00:00
margin: 40px 0;
2022-09-17 16:28:51 +00:00
}
.area-head {
width: calc(100% - 20px);
height: 80px;
position: relative;
padding-left: 15px;
}
2022-09-20 15:00:08 +00:00
.area-head > span {
font-size: 23px;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.area-name {
background-image: url("bg/title/01.png");
background-size: contain;
height: inherit;
width: 356px;
filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.8));
}
.area-name > img {
2022-09-17 16:28:51 +00:00
height: inherit;
filter: drop-shadow(3px 3px 5px black);
2022-09-20 15:00:08 +00:00
position: relative;
left: 5px;
2022-09-17 16:28:51 +00:00
}
2022-09-20 15:00:08 +00:00
.area-name > div {
2022-09-17 16:28:51 +00:00
position: absolute;
top: 50%;
2022-09-20 15:00:08 +00:00
left: 88px;
2022-09-17 16:28:51 +00:00
transform: translateY(-50%);
2022-09-20 15:00:08 +00:00
font-size: 28px;
}
.material-name {
top: 0 !important;
right: 269px;
z-index: 2;
padding: 2px 20px;
min-width: 100px;
min-height: 40px;
border-radius: 20px 5px 20px 20px;
background-color: rgb(246 222 169 / 50%);
backdrop-filter: blur(5px);
display: flex;
justify-content: center;
align-items: center;
box-shadow: 3px 3px 5px rgb(0 0 0 / 50%);
font-size: 24px !important;
2022-09-17 16:28:51 +00:00
}
.materials {
width: 335px;
height: inherit;
right: 0;
display: flex;
align-items: center;
justify-content: center;
background-image: url("bg/title/02.png");
background-size: 100% 100%;
position: relative;
top: 50%;
transform: translateY(-50%);
2022-09-20 15:00:08 +00:00
filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.8));
}
.materials > div:not(.material) {
position: absolute;
width: 100px;
height: 35px;
background: rgb(246 222 169 / 80%);
left: -35px;
top: -15px;
z-index: 2;
box-shadow: 1px 1px 10px rgb(0 0 0 / 20%);
border-radius: 20px 5px 20px 20px;
backdrop-filter: blur(10px);
text-align: center;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
color: rgb(255 255 255);
2022-09-17 16:28:51 +00:00
}
.material {
position: relative;
top: 5px;
width: 60px;
margin: 0 5px;
filter: drop-shadow(1px 1px 5px #838383);
}
.material-icon {
width: 60px;
height: 60px;
background-size: 100% auto;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 5px;
}
.material-icon > img {
height: 100%;
2022-09-17 16:28:51 +00:00
}
.material-star {
position: relative;
top: -5px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
filter: drop-shadow(1px 1px 2px #6C6C6C);
2022-09-17 16:28:51 +00:00
}
.material-star > img {
width: 10px;
}
.area-content {
margin: 20px 0;
padding: 0 20px;
display: flex;
flex-flow: wrap;
}
.item {
width: 150px;
background-color: var(--bg-color);
border-radius: 10px;
box-shadow: 3px 3px 10px var(--shadow);
margin: 10px 12px;
justify-content: center;
position: relative;
2022-09-17 16:28:51 +00:00
}
.item-not-owned::after {
content: "";
position: absolute;
top: 0;
width: 100%;
height: 100%;
background-color: rgb(0 0 0 / 50%);
z-index: 1;
border-radius: 10px;
}
2022-09-17 16:28:51 +00:00
.item-icon {
width: inherit;
height: 150px;
2022-09-17 16:28:51 +00:00
background-size: 104% auto;
background-position: center;
overflow: hidden;
border-radius: 10px 10px 35px 0;
position: relative;
}
.item-icon > img {
max-height: 100%;
max-width: 150px;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
.item-icon-character-talent {
position: absolute;
padding: 4px;
bottom: 0;
left: 0;
background-color: rgba(100, 149, 237, 0.7);
backdrop-filter: blur(3px);
border-radius: 0 5px 0 0;
box-shadow: 1px 1px 5px var(--shadow);
}
.item-icon-character-talent > span {
color: white;
font-size: 14px;
letter-spacing: 0.05em;
}
2022-09-17 16:28:51 +00:00
.item-name {
text-align: center;
display: flex;
align-items: center;
height: 35px;
}
.item-name > div {
width: 100%;
font-size: 22px;
text-align: center;
}
.item > .item-icon > div {
position: absolute;
z-index: 1;
color: white;
}
.item > .item-icon > div:first-child {
background-color: rgba(100, 149, 237, 0.7);
backdrop-filter: blur(3px);
border-radius: 0 0 5px 0;
box-shadow: 1px 1px 5px var(--shadow);
left: 0;
font-size: 18px;
padding: 4px 5px;
}
.character {
overflow: hidden;
}
.character > .item-icon > div:nth-child(2) {
border-radius: 0 0 0 5px;
box-shadow: -1px 1px 5px var(--shadow);
right: 0;
font-size: 20px;
padding: 3px;
}
.weapon > .item-icon > div:nth-child(2) {
border-radius: 0 5px 0 0;
box-shadow: -1px -1px 5px var(--shadow);
bottom: 0;
font-size: 18px;
padding: 3px;
}
.weapon {
overflow: unset;
position: relative;
}
.weapon > .role {
background-color: rgb(76 82 107 / 80%);
backdrop-filter: blur(3px);
position: absolute;
right: -10px;
top: -10px;
z-index: 2;
width: 30px;
height: 30px;
padding: 5px;
border-radius: 100%;
border-style: solid;
border-width: 3px;
border-color: white;
}
.weapon > .role > img {
height: 58px;
2022-09-17 16:28:51 +00:00
position: absolute;
left: 20px;
2022-09-17 16:28:51 +00:00
transform: translateX(-50%);
bottom: 0;
}