summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-02-25 03:57:49 +0100
committerJonas Smedegaard <dr@jones.dk>2016-02-25 03:59:03 +0100
commit359ab13ea6cf3a421dcad6b1fb41715fba44f9ad (patch)
tree26e657117716a1db2a183edc2816268359af46cd
parent07a89e7f0c694659c6261130c5f81a4ada7df6d0 (diff)
Fix style anchor tag itself (and pseudo-anchor too), to have it control surrounding space.
-rw-r--r--test.scss24
1 files changed, 14 insertions, 10 deletions
diff --git a/test.scss b/test.scss
index 2cfdbf7..45a5305 100644
--- a/test.scss
+++ b/test.scss
@@ -10,26 +10,30 @@
// margin: 3em 0;
//}
-.topbar ul li {
- display: inline-block;
+.topbar ul {
position: relative;
top: 1.5em;
- width: 10em;
- padding: 1em;
- margin: 0 0.2em 0;
- background-color: #6699cc;
- &:hover {
- background-color: lightblue;
- }
}
-.topbar ul li a {
+.topbar ul li a,
+.topbar ul li .selflink {
+ @include inline-block;
+ width: 12em;
+ line-height: 4em;
+ background-color: #6699cc;
color: white;
&:hover {
+ background-color: lightblue;
color: #336699;
}
}
+// FIXME: change topbar inline-block-list padding instead
+.topbar ul li {
+ padding-left: .2em;
+ padding-right: .2em;
+}
+
#content {
width: 96%;
max-width: none;