-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added action menu for deimos:answer_question.html
- Loading branch information
1 parent
c5d44e3
commit 49b70ba
Showing
23 changed files
with
185 additions
and
89 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
.navigation-m{ | ||
margin-top: 5%; | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.menuToggle { | ||
position: relative; | ||
width: 70px; | ||
height: 70px; | ||
background: #fff; | ||
border-radius: 70px; | ||
cursor: pointer; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-shadow: 0 15px 25px rgba(0,0,0,0.15); | ||
} | ||
.menuToggle::before{ | ||
content:'+'; | ||
position: absolute; | ||
font-size: 3em; | ||
font-weight: 200; | ||
color: #ff216d; | ||
transition: 1.5s; | ||
} | ||
.menuToggle.active::before { | ||
transform: rotateX(80deg); | ||
} | ||
|
||
.menu { | ||
position: absolute; | ||
width: 30px; | ||
height:30px; | ||
background: #fff; | ||
border-radius: 70px; | ||
z-index: -1; | ||
transition: transform 0.5s, width 0.5s, height 0.5s; | ||
transition-delay: 1s, 0.5s, 0.5s; | ||
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1); | ||
} | ||
|
||
.menuToggle.active ~ .menu { | ||
width: 240px; | ||
height: 70px; | ||
z-index: 1; | ||
transform: translateY(-100px); | ||
transition-delay: 0s, 0.5s, 0.5s; | ||
box-shadow: 0 15px 25px rgba(0,0,0,0.15); | ||
} | ||
|
||
.menu::before | ||
{ | ||
content: ''; | ||
position: absolute; | ||
width: 16px; | ||
height: 16px; | ||
background:#fff; | ||
left: calc(50% - 8px); | ||
bottom: 4px; | ||
transform: rotate(45deg); | ||
border-radius: 2px; | ||
transition: 0.5s; | ||
} | ||
.menuToggle.active ~ .menu::before{ | ||
transition-delay: 0.5s; | ||
bottom: -6px; | ||
} | ||
.menu ul { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 80px; | ||
gap: 40px; | ||
} | ||
.menu ul li{ | ||
list-style: none; | ||
cursor: pointer; | ||
opacity: 0; | ||
visibility: hidden; | ||
transform: translateY(-30px); | ||
transition: 0.25s; | ||
transition-delay: calc(0s + var(--i)); | ||
} | ||
.menuToggle.active ~ .menu ul li { | ||
opacity: 1; | ||
visibility: visible; | ||
transform: translate(0px); | ||
transition-delay: calc(0.75s + var(--i)); | ||
} | ||
.menu ul li a{ | ||
display: block; | ||
font-size: 2em; | ||
text-decoration: none; | ||
color: #555; | ||
} | ||
.menu ul li:hover a { | ||
color: #ff216d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let menuToggle = document.querySelector('.menuToggle'); | ||
menuToggle.addEventListener('click', (event)=>{ | ||
event.preventDefault(); | ||
menuToggle.classList.toggle('active'); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!--deimos: action_menu.html--> | ||
<div class="navigation-m"> | ||
<div class="menuToggle"></div> | ||
<div class="menu"> | ||
<ul> | ||
<li style="--i:0.1s;"> | ||
<a href="#"><ion-icon name="pencil-outline"></ion-icon> | ||
</a> | ||
</li> | ||
<li style="--i:0.2s;"> | ||
<a href="#"><ion-icon name="camera-outline"></ion-icon> | ||
</a> | ||
</li> | ||
<li style="--i:0.3s;"> | ||
<a href="#"><ion-icon name="mail-unread-outline"></ion-icon> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ | |
</div> | ||
</div> | ||
</div> | ||
|
||
{% include 'deimos/action_menu.html' %} | ||
|
||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters