sphinx_gallery.css 2.53 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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 {
Yuge Zhang's avatar
Yuge Zhang committed
14
    background-color: #f0f6fa !important;
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
    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;
}

.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 */
Yuge Zhang's avatar
Yuge Zhang committed
40
    border-bottom-color: var(--custom-color-accent);
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
}

.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;
}

.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 {
Yuge Zhang's avatar
Yuge Zhang committed
106
107
    max-width: 75%;
    max-height: 75%;
108
109
110
111
112
113
114
115
116
117
118
119
120
121
    /* 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 {
Yuge Zhang's avatar
Yuge Zhang committed
122
    background-color: #E8DCEE;
123
124
125
126
127
128
129
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    padding: 0;
}

/* pallette */
Yuge Zhang's avatar
Yuge Zhang committed
130
131
.card-link-icon.cyan {
    background-color: #DDEFF2;
132
133
134
}

.card-link-icon.purple {
Yuge Zhang's avatar
Yuge Zhang committed
135
    background-color: #E8DCEE;
136
137
138
}

.card-link-icon.blue {
Yuge Zhang's avatar
Yuge Zhang committed
139
    background-color: #DBE8FC;
140
141
142
}

.card-link-icon.indigo {
Yuge Zhang's avatar
Yuge Zhang committed
143
    background-color: #E1E4F3;
144
}