[WIP]: Add styling to itemPage
- added smooth transformation - added nav
This commit is contained in:
@@ -38,13 +38,16 @@
|
|||||||
<!-- input field -->
|
<!-- input field -->
|
||||||
|
|
||||||
<header class="inputField-header">
|
<header class="inputField-header">
|
||||||
<input class="newItemName" id="inputTextField" autofocus autocomplete="off" placeholder=" " v-model="newItem" @keyup.enter="addItem"/>
|
<input class="newItemName" id="inputTextField" autofocus autocomplete="off" placeholder=" " v-model="newItem"
|
||||||
|
@keyup.enter="addItem"/>
|
||||||
<label for="inputTextField" class="formLabel">
|
<label for="inputTextField" class="formLabel">
|
||||||
Add here
|
Add here ...
|
||||||
</label>
|
</label>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="main" v-show="items.length" v-cloak>
|
<!-- response element -->
|
||||||
|
|
||||||
|
<section class="item-section" v-show="items.length" v-cloak>
|
||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
<li v-for="item in items"
|
<li v-for="item in items"
|
||||||
class="item"
|
class="item"
|
||||||
@@ -153,7 +156,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
export default Items
|
export default Items
|
||||||
</script>
|
</script>
|
||||||
@@ -180,6 +182,16 @@ export default Items
|
|||||||
background-color: darkcyan;
|
background-color: darkcyan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* cursor styling */
|
||||||
|
|
||||||
|
.cursor {
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
border: 0.15rem solid black;
|
||||||
|
border-radius: 100%;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
/* navbar styling */
|
/* navbar styling */
|
||||||
|
|
||||||
.navbar-header {
|
.navbar-header {
|
||||||
@@ -205,16 +217,15 @@ export default Items
|
|||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
.nav-link{
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
margin: 0.2rem;
|
margin: 0.2rem;
|
||||||
padding: 1rem 0.5rem;
|
padding: 1rem 0.5rem;
|
||||||
|
transition: all 300ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
font-size: 3.5rem;
|
font-size: 3.5rem;
|
||||||
|
transition: all 300ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -230,8 +241,8 @@ export default Items
|
|||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: black;
|
background: black;
|
||||||
height: 5px;
|
height: 2.5px;
|
||||||
width: 40px;
|
width: 3rem;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&::before, &::after {
|
&::before, &::after {
|
||||||
@@ -257,7 +268,7 @@ export default Items
|
|||||||
.menu-btn {
|
.menu-btn {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.logo:hover {
|
.logo:hover {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@@ -269,18 +280,19 @@ export default Items
|
|||||||
|
|
||||||
.menu-icon {
|
.menu-icon {
|
||||||
display: block;
|
display: block;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
&__line {
|
&__line {
|
||||||
animation: closedButton 0.8s backwards;
|
animation: closedButton 1s backwards;
|
||||||
animation-direction: reverse;
|
animation-direction: reverse;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
animation: closedButtonBefore 0.8s backwards;
|
animation: closedButtonBefore 1s backwards;
|
||||||
animation-direction: reverse;
|
animation-direction: reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
animation: closedButtonAfter 0.8s backwards;
|
animation: closedButtonAfter 1s backwards;
|
||||||
animation-direction: reverse;
|
animation-direction: reverse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -298,11 +310,12 @@ export default Items
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
font-weight: bolder;
|
||||||
|
letter-spacing: 0.25rem;
|
||||||
color: white;
|
color: white;
|
||||||
background: #272727;
|
background: #272727;
|
||||||
|
|
||||||
transition:
|
transition: opacity 0.8s 0.5s,
|
||||||
opacity 0.8s 0.5s,
|
|
||||||
clip-path 1s 0.5s;
|
clip-path 1s 0.5s;
|
||||||
clip-path: circle(200px at top right);
|
clip-path: circle(200px at top right);
|
||||||
|
|
||||||
@@ -333,16 +346,16 @@ export default Items
|
|||||||
|
|
||||||
.menu-icon__line {
|
.menu-icon__line {
|
||||||
background: white;
|
background: white;
|
||||||
animation: openButton 0.8s forwards;
|
animation: openButton 1s forwards;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background: white;
|
background: white;
|
||||||
animation: openButtonBefore 0.8s forwards;
|
animation: openButtonBefore 1s forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
background: white;
|
background: white;
|
||||||
animation: openButtonAfter 0.8s forwards;
|
animation: openButtonAfter 1s forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -436,6 +449,7 @@ export default Items
|
|||||||
outline: none;
|
outline: none;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
background: none;
|
background: none;
|
||||||
|
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -463,6 +477,7 @@ export default Items
|
|||||||
left: 0.25rem;
|
left: 0.25rem;
|
||||||
font-size: 0.00001rem;
|
font-size: 0.00001rem;
|
||||||
color: black;
|
color: black;
|
||||||
|
// set context here
|
||||||
}
|
}
|
||||||
|
|
||||||
.newItemName:focus ~ .formLabel, .newItemName:not(:placeholder-shown).newItemName:not(:focus) ~ .formLabel {
|
.newItemName:focus ~ .formLabel, .newItemName:not(:placeholder-shown).newItemName:not(:focus) ~ .formLabel {
|
||||||
@@ -470,6 +485,9 @@ export default Items
|
|||||||
left: 0.25rem;
|
left: 0.25rem;
|
||||||
font-size: 0.00001rem;
|
font-size: 0.00001rem;
|
||||||
color: black;
|
color: black;
|
||||||
|
// set context here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* item section */
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user