~zainab/blog

blog/src/index-page.css.pp -rw-r--r-- 2.3 KiB
d9e5070ezainab-ali Add question aside 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#lang pollen

(require "theme.rkt")

(define time-icon-spacing 6)
(define summary-card-spacing (* time-icon-spacing 5))
(define header-spacing (* time-icon-spacing 5))
(define footer-spacing (* time-icon-spacing 5))
(define summary-spacing (* time-icon-spacing 5))

body.index-page {
    background-color: |linen-colour|;
}

body.index-page {
    display: grid;
    grid-template-columns: 1fr |page-width|px 1fr;
    grid-template-areas:
        ".    header ."
        ".    main ."
        ".    footer ."
    ;
}

body.index-page header.index-page-header {
    grid-area: header;
    display: flex;
    justify-content: center;
    margin: |header-spacing|px 0;
}

body.index-page footer.index-page-footer {
    grid-area: footer;
    display: flex;
    justify-content: center;
    margin: |footer-spacing|px 0;
}
body.index-page footer.index-page-footer p {
    font-size: 18px;
}

body.index-page main {
    grid-area: main;
}

body.index-page main article.summary-card {
    background-color: white;
    padding: |summary-card-spacing|px;
    border-top: 1px dashed |needle-colour|;
}
body.index-page main article.summary-card header {
    display: flex;
    justify-content: space-between;
}

body.index-page main article.summary-card header h1 {
    font-variant: small-caps;
    font-size: |body-font-size|px;
    font-weight: normal;
    margin: 0;
}

body.index-page main article.summary-card header div.time {
    display: flex;
}

body.index-page main article.summary-card header div.time {
    display: flex;
    align-items: center;
}

body.index-page article.summary-card div.time span.icon {
    margin-right: |time-icon-spacing|px;
}
body.index-page main article.summary-card p.abstract {
    text-align: justify;
    margin-top: |summary-card-spacing|px;
    margin-bottom: 0;
}

body.index-page main span.keyword {
    font-variant: all-small-caps;
}

body.index-page main div.summary {
    padding: |summary-spacing|px 0;
}

/* TODO: link styling (and working. maybe the div should be a button?) */
body.index-page main button.summary-card {
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
}
body.index-page main button.summary-card:hover h1 {
    text-decoration: underline;
}

body.index-page main button.summary-card:hover h1 {
    text-decoration: underline;
}