forked from yousinix/portfolYOU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_markdown.scss
117 lines (101 loc) · 1.93 KB
/
_markdown.scss
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
.markdown-body {
h1,
h2 {
margin-top: 32px;
}
hr {
background: $secondary;
}
img:not(.emoji) {
display: block;
max-width: 100%;
height: auto;
margin: 1rem auto;
}
.video {
position: relative;
padding-bottom: 56.25%;
margin-bottom: 1rem;
width: 100%;
iframe {
position: absolute;
height: 100%;
width: 100%;
}
}
a:not(.btn):not([class^="carousel-"]):not([class^="list-"]):not(.no-underline) {
display: inline-block;
text-decoration: none;
&:hover {
color: $primary;
}
&::after {
content: "";
display: block;
height: 0.15em;
margin-top: -0.15em;
width: 0;
background: $primary;
transition: width 0.35s;
}
&:hover::after {
width: 100%;
}
}
pre {
background: $light;
border: 1px solid #ddd;
color: $dark;
font-family: monospace;
font-size: 14px;
line-height: 20px;
margin-bottom: 1.6em;
max-width: 100%;
padding: 1em 1.5em;
display: block;
page-break-inside: avoid;
overflow: auto;
word-wrap: break-word;
}
code.highlighter-rouge {
background-color: $light;
color: $dark;
border-radius: 3px;
margin: 0;
padding: 0.2em 0.65em;
}
blockquote {
border-left: 0.25em solid $primary;
color: $secondary;
padding: 0 1em;
}
ul.task-list {
list-style: none;
padding-left: 24px;
}
input.task-list-item-checkbox {
margin-right: 10px;
vertical-align: middle;
}
table:not(.highlight) {
display: block;
overflow-x: auto;
margin: 1rem 0;
td {
border: 1px solid #ddd;
padding: 8px 16px;
}
th {
@extend td;
padding-top: 12px;
padding-bottom: 12px;
font-weight: 500;
text-align: left;
background-color: $primary;
color: white;
}
tr:nth-child(even) {
background-color: rgba(0, 0, 0, 0.05);
}
}
}