-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.scss
More file actions
166 lines (139 loc) · 3.15 KB
/
Copy pathcustom.scss
File metadata and controls
166 lines (139 loc) · 3.15 KB
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
/*-- scss:defaults --*/
// Modern color palette
$primary-color: #2E86AB;
$secondary-color: #A23B72;
$accent-color: #F18F01;
$warning-color: #C73E1D;
// Typography
$font-family-sans-serif: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
$font-family-monospace: "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", Menlo, monospace;
// Layout
$body-bg: #ffffff;
$body-color: #2c3e50;
$link-color: $primary-color;
$link-hover-color: darken($primary-color, 15%);
/*-- scss:rules --*/
// Modern header styling
.navbar {
background: linear-gradient(135deg, $primary-color 0%, $secondary-color 100%);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
.navbar-brand {
font-weight: 700;
color: white !important;
}
.navbar-nav .nav-link {
color: rgba(255,255,255,0.9) !important;
transition: color 0.3s ease;
&:hover {
color: white !important;
}
}
}
// Code blocks with modern styling
pre {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
code {
background: #f1f3f4;
color: #c7254e;
padding: 2px 4px;
border-radius: 4px;
font-family: $font-family-monospace;
}
// Callout boxes
.callout {
border-radius: 8px;
border-left: 4px solid;
margin: 1rem 0;
padding: 1rem;
&.callout-note {
border-left-color: $primary-color;
background: rgba($primary-color, 0.05);
}
&.callout-warning {
border-left-color: $warning-color;
background: rgba($warning-color, 0.05);
}
&.callout-tip {
border-left-color: $accent-color;
background: rgba($accent-color, 0.05);
}
}
// Table styling
.table {
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border-radius: 8px;
overflow: hidden;
thead th {
background: $primary-color;
color: white;
border: none;
}
}
// Button styling
.btn {
border-radius: 6px;
padding: 0.5rem 1rem;
font-weight: 500;
transition: all 0.3s ease;
&.btn-primary {
background: $primary-color;
border-color: $primary-color;
&:hover {
background: darken($primary-color, 10%);
border-color: darken($primary-color, 10%);
transform: translateY(-1px);
}
}
}
// Language selector styling
.language-selector {
display: flex;
gap: 1rem;
margin: 2rem 0;
justify-content: center;
.lang-button {
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, $primary-color, $secondary-color);
color: white;
text-decoration: none;
border-radius: 25px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
color: white;
text-decoration: none;
}
}
}
// Responsive improvements
@media (max-width: 768px) {
.navbar-brand {
font-size: 1.1rem;
}
.language-selector {
flex-direction: column;
align-items: center;
}
}
// Dark mode support
@media (prefers-color-scheme: dark) {
body {
background: #1a1a1a;
color: #e0e0e0;
}
pre {
background: #2d2d2d;
border-color: #404040;
}
code {
background: #404040;
color: #ff6b6b;
}
}