[WIP]: Adding style to frontend
- better responsive behavior for 2560 x 1440 resolution
This commit is contained in:
@@ -72,7 +72,12 @@
|
|||||||
</body>
|
</body>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import api from '../Api';
|
import api from '../Api';
|
||||||
|
|
||||||
const Items = {
|
const Items = {
|
||||||
@@ -165,6 +170,11 @@ const Items = {
|
|||||||
export default Items
|
export default Items
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200&display=swap');
|
||||||
@@ -281,10 +291,11 @@ body{
|
|||||||
.item-section{
|
.item-section{
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 20px;
|
|
||||||
top: 80%;
|
top: 80%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: 50px;
|
|
||||||
|
font-size: 20px;
|
||||||
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-list{
|
.item-list{
|
||||||
@@ -292,9 +303,9 @@ body{
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
top: -60vh;
|
top: -60vh;
|
||||||
left: -44.33vw;
|
left: -44.33vw;
|
||||||
|
|
||||||
row-gap: 75px;
|
row-gap: 75px;
|
||||||
column-gap: 340px;
|
column-gap: 340px;
|
||||||
|
|
||||||
@@ -305,21 +316,24 @@ body{
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-family: Montserrat, sans-serif;
|
font-family: Montserrat, sans-serif;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 100px;
|
|
||||||
width: 300px;
|
|
||||||
background: darkslategrey;
|
background: darkslategrey;
|
||||||
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.6);
|
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.6);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
padding: 100px;
|
||||||
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-name{
|
.item-name{
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
left: -20px;
|
left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-name-fame{
|
.item-name-fame{
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
letter-spacing: 4px;
|
letter-spacing: 4px;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
@@ -328,46 +342,51 @@ body{
|
|||||||
content:'';
|
content:'';
|
||||||
display:block;
|
display:block;
|
||||||
border-bottom:2px solid #000;
|
border-bottom:2px solid #000;
|
||||||
top: 16px;
|
|
||||||
height:0;
|
height:0;
|
||||||
width:250px;
|
|
||||||
position:relative;
|
position:relative;
|
||||||
|
|
||||||
|
top: 16px;
|
||||||
|
width:250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-information-frame{
|
.item-information-frame{
|
||||||
letter-spacing: 2px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
letter-spacing: 2px;
|
||||||
top: 32px;
|
top: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view{
|
.view{
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -60px;
|
|
||||||
left: -2.5vh;
|
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
|
top: -60px;
|
||||||
|
left: -52px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.destroy{
|
.destroy{
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 50px;
|
|
||||||
width: 2px;
|
|
||||||
top: 140px;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
border: solid black 1px;
|
border: solid black 1px;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
|
|
||||||
|
height: 50px;
|
||||||
|
width: 2px;
|
||||||
|
top: 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.destroy:after{
|
.destroy:after{
|
||||||
content: '';
|
content: '';
|
||||||
height: 50px;
|
|
||||||
width: 2px;
|
|
||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
border: solid black 1px;
|
border: solid black 1px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -2px;
|
|
||||||
transform: rotate(-90deg);
|
transform: rotate(-90deg);
|
||||||
|
|
||||||
|
height: 50px;
|
||||||
|
width: 2px;
|
||||||
|
top: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.destroy:hover{
|
.destroy:hover{
|
||||||
@@ -402,6 +421,115 @@ body{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* responsive */
|
||||||
|
|
||||||
|
@media (max-height: 1440px) and (min-width: 720px) {
|
||||||
|
|
||||||
|
.item-section{
|
||||||
|
|
||||||
|
font-size: 40/3 px;
|
||||||
|
margin-left: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-list{
|
||||||
|
z-index: 2;
|
||||||
|
align-self: center;
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
top: -60vh;
|
||||||
|
left: -44.33vw;
|
||||||
|
|
||||||
|
row-gap: 50px;
|
||||||
|
column-gap: 230px;
|
||||||
|
grid-template-columns: repeat(4, 2vh);
|
||||||
|
|
||||||
|
.item{
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name{
|
||||||
|
left: -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-fame{
|
||||||
|
position: relative;
|
||||||
|
letter-spacing: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
top: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-fame:after{
|
||||||
|
content:'';
|
||||||
|
display:block;
|
||||||
|
border-bottom:2px solid #000;
|
||||||
|
height:0;
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
top: 8px;
|
||||||
|
width:170px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-information-frame{
|
||||||
|
|
||||||
|
font-size: 8px;
|
||||||
|
|
||||||
|
letter-spacing: 1px;
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view{
|
||||||
|
position: relative;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
top: -50px;
|
||||||
|
left: -52px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destroy{
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
left: -10px;
|
||||||
|
border-radius: 1px;
|
||||||
|
border: solid black 1px;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
|
||||||
|
height: 35px;
|
||||||
|
width: 2px;
|
||||||
|
top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destroy:after{
|
||||||
|
content: '';
|
||||||
|
border-radius: 1px;
|
||||||
|
border: solid black 1px;
|
||||||
|
position: fixed;
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
|
||||||
|
height: 35px;
|
||||||
|
width: 2px;
|
||||||
|
top: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destroy:hover{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1440px) {
|
||||||
|
|
||||||
|
.item-section{
|
||||||
|
|
||||||
|
font-size: 40/3 px;
|
||||||
|
margin-left: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-list{
|
||||||
|
grid-template-columns: repeat(9, 2vh)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
padding: 0 5vw;
|
padding: 0 5vw;
|
||||||
color: black;
|
color: black;
|
||||||
z-index: 3;
|
z-index: 4;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 5vh 0;
|
padding: 5vh 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 120vh;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
letter-spacing: 0.25vh;
|
letter-spacing: 0.25vh;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -145,6 +145,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-btn:checked{
|
||||||
|
body{
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.menu-btn:checked ~ .nav-links {
|
.menu-btn:checked ~ .nav-links {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
clip-path: circle(100% at center);
|
clip-path: circle(100% at center);
|
||||||
|
|||||||
Reference in New Issue
Block a user