aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-26 19:15:40 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-26 19:21:01 +0200
commitb9ef4eb2faa38ff1592d3e252d6835fe9bc5c036 (patch)
tree42f11d26c2fd59aa42573e0d27837dd7c96de5af
parentText event CSS better generalized. (diff)
downloadcalp-b9ef4eb2faa38ff1592d3e252d6835fe9bc5c036.tar.gz
calp-b9ef4eb2faa38ff1592d3e252d6835fe9bc5c036.tar.xz
Made .btn own css class.
-rw-r--r--module/output/html.scm6
-rw-r--r--static/style.css18
2 files changed, 16 insertions, 8 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index b62b106a..6b2849ad 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -649,7 +649,8 @@
;; Small calendar and navigation
(nav (@ (class "calnav") (style "grid-area: nav"))
(div (@ (class "change-view"))
- (a (@ (href "/week/" ,(date->string
+ (a (@ (class "btn")
+ (href "/week/" ,(date->string
(if (= 1 (day start-date))
(start-of-week start-date (get-config 'week-start))
start-date)
@@ -658,7 +659,8 @@
"weekly")
- (a (@ (href "/month/" ,(date->string (set (day start-date) 1) "~1")
+ (a (@ (class "btn")
+ (href "/month/" ,(date->string (set (day start-date) 1) "~1")
".html"))
"monthly")))
diff --git a/static/style.css b/static/style.css
index 07f25fa3..03e60cf3 100644
--- a/static/style.css
+++ b/static/style.css
@@ -91,26 +91,32 @@ html, body {
"Buttons" for changing between weekly and monthly layout
*/
-
.change-view {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
-.change-view a {
+.change-view .btn {
+ margin-top: 1ex;
+ margin-bottom: 1ex;
+}
+
+.btn {
padding: 0.5em;
background-color: #3399ff;
- text-decoration: none;
color: white;
box-shadow: 1ex 1ex gray;
- margin-top: 1ex;
- margin-bottom: 1ex;
+ /* if a */
+ text-decoration: none;
+
+ /* if button */
+ border: none;
}
-.change-view a:active {
+.btn:active {
transform: translate(1ex, 1ex);
box-shadow: none;
}