-
Notifications
You must be signed in to change notification settings - Fork 223
/
Copy pathcustom.css
157 lines (137 loc) · 3.31 KB
/
custom.css
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
/*******************************************************************************
* Copyright (c) 2022 - 2025 NVIDIA Corporation & Affiliates. *
* All rights reserved. *
* *
* This source code and the accompanying materials are made available under *
* the terms of the Apache License 2.0 which accompanies this distribution. *
* *
* File: custom.css *
* Created Date: 16 Feb 2023 *
* Last Modified: 16 Feb 2023 *
******************************************************************************/
.notebook-entry {
display: grid;
grid-template-areas:
"title image"
"content image";
grid-template-columns: 1fr 300px;
grid-template-rows: auto 1fr;
gap: 20px;
margin-bottom: 50px;
padding: 20px;
border: 1px solid #eee;
background: white;
}
.notebook-title {
grid-area: title;
display: block;
font-size: 24px;
font-weight: bold;
text-decoration: none;
margin: 0;
padding: 0 0 10px 0;
color: #333;
border-bottom: 1px solid #eee;
}
.notebook-title:hover {
color: #76b900;
text-decoration: underline;
}
.notebook-content {
grid-area: content;
padding: 0;
margin: 0;
line-height: 1.6;
}
.notebook-image {
grid-area: image;
width: 300px;
height: 200px;
object-fit: cover;
justify-self: end;
align-self: start;
margin: 0;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toctree-wrapper {
grid-area: link;
margin: 10px 0 0 0;
padding: 0;
}
.tag-button {
margin: 2px;
padding: 8px 16px;
border: 1px solid #ccc;
background: #f8f8f8;
cursor: pointer;
border-radius: 4px;
transition: all 0.3s ease;
}
.tag-button.active {
background-color: #76b900;
color: white;
border-color: #599400;
box-shadow: 0 0 5px rgba(118, 185, 0, 0.3);
}
.tag-button:hover {
background-color: #ecffad;
}
.filter-groups {
margin-bottom: 40px;
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
}
.tag-filters {
margin-bottom: 25px;
}
.backend-group {
display: inline-block;
position: relative;
margin-right: 10px;
}
.backend-options {
display: none;
position: absolute;
top: 100%;
left: 0;
background: white;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 100;
min-width: 200px;
}
.backend-group:hover .backend-options {
display: block;
}
.backend-toggle {
position: relative;
padding-right: 24px;
}
.backend-toggle::after {
content: '▼';
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
font-size: 10px;
}
.sub-option {
display: block;
width: 100%;
text-align: left;
margin: 4px 0;
border: none;
background: transparent;
padding: 6px 12px;
}
.sub-option:hover {
background-color: #f5f5f5;
}
.sub-option.active {
background-color: #76b900;
color: white;
}