summaryrefslogtreecommitdiff
path: root/src/components/News.vue
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-07-25 21:14:09 -0400
committergumi <git@gumi.ca>2019-07-25 21:14:09 -0400
commit310c70c0a5b11a95ed85ae63e4fb2cf1d3441880 (patch)
treed551efe63eae4469e0dbefb0ca11496a55d7a094 /src/components/News.vue
parent0f01df5c4d4a75bd75cb9de2d55e8e254b01c3c7 (diff)
downloadwebsite-310c70c0a5b11a95ed85ae63e4fb2cf1d3441880.tar.gz
website-310c70c0a5b11a95ed85ae63e4fb2cf1d3441880.tar.bz2
website-310c70c0a5b11a95ed85ae63e4fb2cf1d3441880.tar.xz
website-310c70c0a5b11a95ed85ae63e4fb2cf1d3441880.zip
further improve the readability of News
Diffstat (limited to 'src/components/News.vue')
-rw-r--r--src/components/News.vue25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/components/News.vue b/src/components/News.vue
index a24209a..473c9a1 100644
--- a/src/components/News.vue
+++ b/src/components/News.vue
@@ -13,15 +13,35 @@
<style scoped>
.news .entry {
- margin-bottom: 1em;
+ margin-bottom: 0;
+ padding-bottom: 1em;
hyphens: auto;
+ &:not(:last-of-type) {
+ padding-bottom: 3em;
+ }
+
&:nth-of-type(1n + 2) {
- margin-top: 3em;
padding-top: 1em;
border-top: solid 0.4ex rgba(0, 0, 0, 0.1);
}
+ &:first-child:not(:only-child) {
+ padding-top: 1em;
+ border-top: solid 0.4ex transparent;
+ }
+
+ &:nth-of-type(1n + 2), &:not(:only-child) {
+ &:hover, &:target {
+ border-color: #0000FF;
+ background-color: rgba(220,220,220,0.5);
+
+ & > .date, & > a {
+ color: #0000FF;
+ }
+ }
+ }
+
& > a {
text-decoration: none;
color: inherit;
@@ -30,7 +50,6 @@
& > .date {
float: right;
- color: #0000FF;
}
& .body {