summaryrefslogtreecommitdiffstats
path: root/assets/scss/_fuji-theme/_light.scss
blob: 02749edea6a037bd49bdfa40be145432d38c7ed1 (plain) (blame)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
$color-primary: #8aa2d3; // https://irocore.com/aofuji/
$color-primary-dark: #3b469b; // https://irocore.com/aomurasaki/
$color-secondary: #8f82bc; // https://irocore.com/fujimurasaki/
$color-mute: #9ea1a3; // https://irocore.com/suzu-iro/
$color-font: #3f4551; // https://irocore.com/konnezu/
$color-divider: #e5e2e4; // https://irocore.com/komachinezu/
$color-bg: #fffffd; // https://irocore.com/shiro/

$divider: 2px solid $color-divider;

@mixin link-1 {
    a {
        color: $color-primary;
    }

    a:hover {
        color: $color-secondary;
    }
}

@mixin link-2 {
    a {
        color: $color-secondary;
    }

    a:hover {
        color: $color-primary-dark;
    }
}

body[data-theme='light'] {
    background-color: $color-bg;
    color: $color-font;

    @include link-1();

    .post-summary,
    .post-meta {
        @include link-2();
    }

    .pag-current a,
    .pag-current a:hover {
        color: $color-primary-dark;
    }

    .title-sub,
    .post-meta {
        color: $color-mute;
    }

    header,
    .page-info {
        border-bottom: $divider;
    }

    .post + .post,
    .pagination,
    footer {
        border-top: $divider;
    }

    .post-meta-archive {
        @include link-2();

        color: $color-mute;
    }

    @media screen and (max-width: $width-md) {
        .sidebar {
            border-top: $divider;
        }
    }

    // single page part
    .post-content {
        @include link-2();
    }

    .markdown-body {
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            color: $color-primary;
        }

        h1,
        h2 {
            border-bottom: $divider;
        }

        blockquote {
            color: $color-mute;
        }

        img {
            border-radius: 2px;
            background-color: inherit; // fix white pixels under border-radius
        }

        hr {
            height: 2px;
        }
    }

    .post-loading,
    .post-comment .utterances-frame,
    .post-comment #disqus_thread {
        border-top: $divider;
    }

    // components
    .btn {
        div {
            background-color: $color-divider;

            color: $color-primary;
        }

        div:hover {
            background-color: $color-primary;
            color: $color-divider;
        }

        div + div {
            border-top: 2px solid $color-bg;
        }
    }

    // prism.js theme [olarized-light]
    @import '../../css/prism-solarizedlight';
}