aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-07 15:52:04 -0500
committerJesús <heckyel@hyperbola.info>2021-12-07 15:52:04 -0500
commit6d4db05bead8d19a9b8f40ecb876d9734835911c (patch)
treed425abc837a21011f02f4a446539a237463e428a
parentadd71295cfc81be4fe9ae787f72fdd780a861327 (diff)
downloadweb-base-6d4db05bead8d19a9b8f40ecb876d9734835911c.tar.lz
web-base-6d4db05bead8d19a9b8f40ecb876d9734835911c.tar.xz
web-base-6d4db05bead8d19a9b8f40ecb876d9734835911c.zip
fix navbar-menu
-rw-r--r--Makefile24
-rw-r--r--styles.css10
2 files changed, 28 insertions, 6 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8fd2535
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+PY?=python3
+SERVERMODULE=http.server
+
+ifeq ($(PY), tauthon)
+ SERVERMODULE = SimpleHTTPServer
+else ifeq ($(PY), python2)
+ SERVERMODULE = SimpleHTTPServer
+else ifeq ($(PY), python3)
+ SERVERMODULE = http.server
+endif
+
+help:
+ @echo 'Makefile for Web-Base '
+ @echo ' '
+ @echo 'Usage: '
+ @echo ' make serve [PY=python] [PORT=8000] serve site at http://localhost:8000 '
+ @echo ' '
+
+serve:
+ifdef PORT
+ $(PY) -m $(SERVERMODULE) $(PORT)
+else
+ $(PY) -m $(SERVERMODULE)
+endif
diff --git a/styles.css b/styles.css
index 1bec822..6b86d93 100644
--- a/styles.css
+++ b/styles.css
@@ -189,15 +189,11 @@ label[for=navbar-toggle-cbox] {
/* --------- End Menu Mobile sin JS ----------- */
.navbar-menu > ul > li {
list-style: none;
- padding-top: 1rem;
- padding-bottom: 1rem;
}
.navbar-menu .list-item {
- display: grid;
- grid-row-gap: 1rem;
- padding-left: 60px;
- padding-right: 60px;
+ margin: 0;
+ padding: 0 1rem;
}
/* Item menu hover */
@@ -206,7 +202,9 @@ label[for=navbar-toggle-cbox] {
}
ul.list-item > li > a {
+ display: block;
color: var(--text);
+ padding: 1rem 0;
text-decoration: none;
}