sphinx_gallery.css 2.61 KB
Newer Older
qianyj's avatar
qianyj committed
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
/* Customization to sphinx-gallery generated notebooks */

p.sphx-glr-script-out {
    margin: 0;
    padding: 0;
    font-size: .7rem;
}

.sphx-glr-script-out .highlight {
    margin: 0 !important;
}

.sphx-glr-script-out .highlight pre {
    background-color: #f0f6fa !important;
    padding: .6rem !important;
    margin-bottom: 1.5rem;
}

div.sphx-glr-footer {
    display: none;
}

.notebook-action-link {
    padding-right: 1rem;
}

.sphx-glr-download-link-note {
    margin-bottom: 1.5rem;
    line-height: 2.5rem;
}

.notebook-action-div {
    display: inline;
    border-bottom: 1px solid #f3f4f7;
    padding-right: 2rem;
    padding-bottom: 0.625rem;
}

.notebook-action-link:hover .notebook-action-div {
    /* match theme */
    border-bottom-color: var(--custom-color-accent);
}

.notebook-action-link img {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 10px;
    vertical-align: middle;
}

.notebook-action-link div {
    display: inline;
}

.notebook-action-link:not(:hover) div {
    color: rgba(0, 0, 0, .68);
}

.card-link.admonition {
    border-left: 0;
    padding: 0.9rem;
}

.card-link .card-link-body {
    min-height: 4rem;
    position: relative;
}

.card-link-text {
    padding-left: 4.9rem;
}

.card-link a:not(:hover) .card-link-text {
    color: rgba(0, 0, 0, .68);
}

.card-link-text .card-link-title-container h4 {
    margin: 0;
}

.card-link-text .card-link-summary {
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

/* hide link */
.card-link-anchor {
    display: none;
}

.card-link-tag {
    margin-right: 0.4rem;
    background: #eeeff2;
    border: 1px solid #e0dcda;
    color: rgba(0, 0, 0, 0.7);
    border-radius: 18px;
    cursor: pointer;
    display: inline-block;
    position: relative;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
}

.card-link-icon {
    position: absolute;
    top: 0;
    left: 0;
}

.card-link-icon img {
    max-width: 75%;
    max-height: 75%;
    /* horizontal and vertical center */
    /* https://stackoverflow.com/questions/7273338/how-to-vertically-align-an-image-inside-a-div */
    text-align: center;
    vertical-align: middle;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

/* link icon background color */
.card-link-icon.circle {
    background-color: #E8DCEE;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    padding: 0;
}

/* pallette */
.card-link-icon.cyan {
    background-color: #DDEFF2;
}

.card-link-icon.purple {
    background-color: #E8DCEE;
}

.card-link-icon.blue {
    background-color: #DBE8FC;
}

.card-link-icon.indigo {
    background-color: #E1E4F3;
}