Skip to content

Commit 8109219

Browse files
Dylan Nav Bar Changes (#642)
* add: css styles for home page buttons and navbar links * add: hr below featuring on the home page - nice touch * change: navlink transitions and home page transitions. remove: <hr> && comments * remove: transition animations for nav links * add: mobile query for nav link underline - += color contrast * add: gap to cards for better width breaking. Updated hero text padding&& nav link color
1 parent ba3c3d1 commit 8109219

2 files changed

Lines changed: 39 additions & 3 deletions

File tree

‎_sass/nimitta.scss‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,37 @@ header.site-header {
4040
}
4141
a.page-link {
4242
color: white;
43+
position: relative;
44+
display: inline-block;
45+
text-decoration: none;
4346
&:not(:last-child) {
4447
margin-right: 13px;
4548
}
4649
}
47-
a.highlighted-nav-link {
48-
border-bottom: 1px solid white;
50+
51+
a.page-link::after {
52+
content: "";
53+
position: absolute;
54+
left: 0;
55+
bottom: 0;
56+
top: 45px;
57+
width: 0;
58+
height: 2px;
59+
background: #D5D5D5;
60+
@include media-query(764px) {
61+
top: 38px !important;
62+
}
63+
}
64+
a.page-link:hover::after,
65+
a.page-link.underline-page::after,
66+
a.page-link.highlighted-nav-link::after {
67+
width: 100%;
68+
}
69+
a.page-link.underline-page {
70+
color: white !important;
71+
}
72+
a.page-link.highlighted-nav-link::after{
73+
background: white;
4974
}
5075
}
5176
.site-title {

‎assets/css/frontpage.scss‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
margin-right: auto;
1111
margin-left: auto;
1212
text-align: center;
13+
gap: 0.1px;
1314
}
1415

1516
.learning_styles li {
@@ -22,6 +23,17 @@
2223
margin: auto;
2324
margin-bottom: 7px;
2425
z-index: 5;
26+
cursor: pointer;
27+
transition: box-shadow linear 0.1s;
28+
}
29+
.learning_styles li a {
30+
text-decoration: none !important;
31+
}
32+
.learning_styles li:hover{
33+
box-shadow: 0 0 16px -5px gray;
34+
}
35+
.learning_styles{
36+
margin-top: 35px;
2537
}
2638

2739
.learning_styles .ls_name {
@@ -64,7 +76,6 @@ div.herotext {
6476
max-width: 30em;
6577
margin-left: auto;
6678
margin-right: auto;
67-
padding: 20px;
6879
padding-top: 80px;
6980
margin-bottom: -100px;
7081
color: $banner-color;

0 commit comments

Comments
 (0)