aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css
diff options
context:
space:
mode:
Diffstat (limited to 'public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css')
-rw-r--r--public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css65
1 files changed, 65 insertions, 0 deletions
diff --git a/public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css b/public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css
new file mode 100644
index 0000000..9f5f90c
--- /dev/null
+++ b/public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css
@@ -0,0 +1,65 @@
+.nav {
+ position: relative;
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: center;
+ margin: 2rem auto 0;
+}
+
+.nav .list--nav {
+ list-style-type: none;
+ position: absolute;
+ bottom: 100%;
+ width: 80vw;
+ margin: 0;
+ padding: 1rem;
+ background: #fff;
+ border: 1px solid #ccc;
+}
+
+@media screen and (min-width: 1024px) {
+ .nav .list--nav {
+ width: 50%;
+ }
+}
+
+.nav__link {
+ background: #fff;
+ border: none;
+ color: hsl(212, 46%, 34%);
+ text-decoration: underline;
+ display: inline-block;
+ margin: 0 1px;
+ padding: 0.8rem 1rem;
+}
+
+.nav .list__link {
+ display: block;
+ padding: 0.2rem;
+}
+
+.nav .list__link--current {
+ background: hsl(212, 46%, 34%);
+ color: #fff;
+}
+
+.nav__link:hover,
+.nav__link:focus,
+.nav .list__link:hover,
+.nav .list__link:focus {
+ text-decoration-thickness: 4px;
+}
+
+.nav__link:focus,
+.nav .list__link:focus {
+ color: inherit;
+}
+
+.nav .list__link--current:focus {
+ color: hsl(0, 0%, 89%);
+}
+
+.nav__link:active {
+ color: hsl(212, 46%, 20%);
+ text-decoration-thickness: 2px;
+}