summaryrefslogtreecommitdiffstats
path: root/_sass/custom/custom.scss
blob: 4f18f08132a8ceb115cbc8139308ba7d52f3207b (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
.page-header {

    .github-edit {
        color: $nav-child-link-color;
        float: right;
        
        &:hover {
            color: $link-color;

            svg {
                fill: $link-color ;
            }
        }

        svg {
            display: inline;
            vertical-align: top;
            width: 1.5 * $spacing-unit;
            height: 1.5 * $spacing-unit;
            fill: $nav-child-link-color;
        }
    }

    h1 {
        margin-right: 3.5 * $spacing-unit;
    }
}


.avatar {
    border-radius: 50%;
    width: 1.5 * $spacing-unit;
    height: 1.5 * $spacing-unit;
}



ul.metadata {
    flex-wrap: wrap;
    list-style: none;
    display: flex;
    margin: 0!important;
    padding: 0.125rem 0 0!important;
    >li{
        flex-basis: auto;
        align-items: center;
        list-style: none;
        display: flex;

        &:not(:last-of-type):not(:only-of-type)::after {
            content: "•";
            padding-left: 5px;
            padding-right: 5px;
            color: $grey-500;
        }

        &::before {
            content: "";
        }
    }
}

[data-toogle] {
    
    cursor: pointer;
}

.modal {
    display: none;  
    position: fixed;  
    z-index: 100;  
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;  
    overflow: auto;  
    background-color: rgba(0,0,0,0.4);  

    .modal-content {
        border: $border $border-color;
        position: relative;
        background-color: $body-background-color;
        width: min(500px, calc(100vw - 40px));
        padding: 0;
        margin: 40px  auto;
        animation-name: animatetop;
        animation-duration: 0.4s;
    
    
        
    
        .modal-header {
            padding: 2px $spacing-unit;
            margin-left: 1.5 * $spacing-unit;

            h2, .close {
                font-size: 1.5 * $spacing-unit !important;
                margin-top: 1.5 * $spacing-unit;
                margin-bottom: 1.5 * $spacing-unit;
                line-height: 1;
            }
            h2 {
                margin-right: 1.5 * $spacing-unit;
            }

            .close {
                color:  $nav-child-link-color;
                float: right;
                font-weight: bold;
                cursor: pointer;
    
                &:hover {
                    color: $link-color;
                }
            }
        }
    
        div.modal-body {padding: 2px $spacing-unit;}
    
        .modal-footer {
            padding: 2px $spacing-unit;
            color: $body-text-color;
        }

        ul.modal-body {
            padding: 0;
            margin: 0;

            >li{

                padding: 10px;
                margin: -1px;
                border-width: 1px 1px 1px 3px;
                border-style: solid;
                border-color: $border-color;

                &:hover {
                    border-left-color: $link-color;
                }

                &::before {
                    content: '';
                }
                
                
                >a {
                    color: $body-text-color;
                    text-decoration: none;
                    border: 0;
                    background: none;
                    display: flex;
                    align-items: center;
                    
                    &:hover {
                        color: $link-color;
                    }

                    img {
                        margin-right: 10px;
                    }
                }
                
            }
        }
    }
}
  
/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

figure {
    border:  $border $border-color;
    border-radius: $border-radius;
    display: table;
    
    figcaption {
        background-color: $code-background-color;
        padding: 8px;
    }
    img{
        vertical-align: middle;
        border-top-left-radius: $border-radius;
        border-top-right-radius: $border-radius;
    }
}