Skip to content

Commit 3b1f97f

Browse files
Added side bar menu
1 parent 026bd27 commit 3b1f97f

3 files changed

Lines changed: 54 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Note: _The order of this list might not match the order these features will be a
5959

6060
_Release date: ???????????????????????_
6161

62-
_Work Time: 9h 10m_
62+
_Work Time: 10h_
6363

6464
#### v1.2
6565

index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<script src="https://cdn.jsdelivr.net/npm/p5@1.3.0/lib/p5.js"></script>
77
<link rel="stylesheet" type="text/css" href="style.css">
88
<link rel="icon" type="image/x-icon" href="assets/ico/favicon.ico">
9+
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css'>
910
</head>
1011

1112
<body>
@@ -16,13 +17,18 @@ <h1>
1617
<img src="assets/ico/tool-logo.png" alt="AnySection" class="tool-logo">
1718
<h3>Select a profile shape</h3>
1819
</div>
19-
<div class="container" id="container"></div>
20-
<!--
21-
<div class="menu">
22-
<a href="../lang.html"><img src="assets/ico/translate.svg" class="ico"></a>
23-
<a href="pages/math.html"><img src="assets/ico/math.svg" class="ico"></a>
20+
21+
<div id="main">
22+
<div class="container" id="container"></div>
23+
24+
<div class="menu">
25+
<a href="pages/equations.html"><i class="fi-rr-square-root"></i><span>Equations</span></a>
26+
<a href="https://github.com/TerribleCoding/AnySection" target="_blank"><i class="fi-rr-book"></i></i><span>Help</span></a>
27+
<a href=""><i class="fi-rr-copyright"></i><span>Credits</span></a>
28+
<a href="https://www.buymeacoffee.com/terriblecoding" target="_blank"><i class="fi-rr-dollar"></i><span>Support</span></a>
29+
</div>
2430
</div>
25-
-->
31+
2632
<script src="script.js"></script>
2733
<div class="copyright">
2834
<p class="copyright">Project developed by</p>

style.css

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
--color-4: #ffffff;
77
--color-5: #df5327;
88
--side-margin: 16px;
9-
--side-bar: 0px; /*30px;*/
9+
--side-bar: 10rem;
1010
}
1111

1212
body {
@@ -92,20 +92,57 @@ a.thumbnail {
9292
width: 140px;
9393
}
9494

95+
#main {
96+
display: flex;
97+
}
98+
9599
.container {
96100
display: inline-block;
97-
padding: 0 48px 0 48px; /*16px for side bar*/
101+
padding: 0 16px;
98102
margin: 0 auto 0 auto;
99-
text-align: center;
103+
/*text-align: center;*/
100104
width: calc(100% - 2 * var(--side-margin) - var(--side-bar) - 4 * 16px);
101105
}
102106

103107
.menu {
104108
float: right;
105109
margin-top: 24px;
106110
padding: 16px;
107-
text-align: right;
108111
width: var(--side-bar);
112+
display: flex;
113+
flex-direction: column;
114+
align-items: flex-end;
115+
flex-grow: 0;
116+
}
117+
118+
.menu > a {
119+
color: var(--color-1);
120+
border: solid 3px var(--color-1);
121+
border-radius: 0.5em;
122+
padding: 0.5em;
123+
display: flex;
124+
flex-direction: row-reverse;
125+
align-items: center;
126+
width: 1.5em;
127+
height: 1.5em;
128+
transition: 0.2s ease-out;
129+
overflow: hidden;
130+
margin-bottom: 2em;
131+
}
132+
133+
.menu > a:hover {
134+
width: 100%;
135+
background-color: var(--color-1);
136+
color: var(--color-4);
137+
}
138+
139+
.menu span {
140+
padding-right: 2ch;
141+
}
142+
143+
.menu i {
144+
font-size: 150%;
145+
margin-top: 0.15em;
109146
}
110147

111148
img.ico {

0 commit comments

Comments
 (0)