Skip to content

Commit c475bc0

Browse files
committed
refactor: update views examples
1 parent f4444a9 commit c475bc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6758
-1476
lines changed

src/assets/favicon/manifest.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
{
2-
"name": "App",
3-
"icons": [
4-
{
5-
"src": "\/android-icon-36x36.png",
6-
"sizes": "36x36",
7-
"type": "image\/png",
8-
"density": "0.75"
9-
},
10-
{
11-
"src": "\/android-icon-48x48.png",
12-
"sizes": "48x48",
13-
"type": "image\/png",
14-
"density": "1.0"
15-
},
16-
{
17-
"src": "\/android-icon-72x72.png",
18-
"sizes": "72x72",
19-
"type": "image\/png",
20-
"density": "1.5"
21-
},
22-
{
23-
"src": "\/android-icon-96x96.png",
24-
"sizes": "96x96",
25-
"type": "image\/png",
26-
"density": "2.0"
27-
},
28-
{
29-
"src": "\/android-icon-144x144.png",
30-
"sizes": "144x144",
31-
"type": "image\/png",
32-
"density": "3.0"
33-
},
34-
{
35-
"src": "\/android-icon-192x192.png",
36-
"sizes": "192x192",
37-
"type": "image\/png",
38-
"density": "4.0"
39-
}
40-
]
41-
}
2+
"name": "App",
3+
"icons": [
4+
{
5+
"src": "/android-icon-36x36.png",
6+
"sizes": "36x36",
7+
"type": "image/png",
8+
"density": "0.75"
9+
},
10+
{
11+
"src": "/android-icon-48x48.png",
12+
"sizes": "48x48",
13+
"type": "image/png",
14+
"density": "1.0"
15+
},
16+
{
17+
"src": "/android-icon-72x72.png",
18+
"sizes": "72x72",
19+
"type": "image/png",
20+
"density": "1.5"
21+
},
22+
{
23+
"src": "/android-icon-96x96.png",
24+
"sizes": "96x96",
25+
"type": "image/png",
26+
"density": "2.0"
27+
},
28+
{
29+
"src": "/android-icon-144x144.png",
30+
"sizes": "144x144",
31+
"type": "image/png",
32+
"density": "3.0"
33+
},
34+
{
35+
"src": "/android-icon-192x192.png",
36+
"sizes": "192x192",
37+
"type": "image/png",
38+
"density": "4.0"
39+
}
40+
]
41+
}

src/pug/_mixins/breadcrumb.pug

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// Breadcrumb
2-
//- nav(aria-label="breadcrumb")
3-
//- ol.breadcrumb.my-0.ms-2
4-
//- li.breadcrumb-item Home
5-
//- li.breadcrumb-item
6-
//- a(href="#") Admin
7-
//- li.breadcrumb-item.active Dashboard
8-
9-
102
mixin breadcrumb(items, last)
113
nav(aria-label="breadcrumb")
124
ol.breadcrumb.my-0.ms-2

src/scss/_examples.scss

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* stylelint-disable declaration-no-important, font-weight-notation, selector-no-qualifying-type, property-disallowed-list, scss/selector-no-redundant-nesting-selector */
2+
13
.example {
24
&:not(:first-child) {
35
margin-top: 1.5rem;
@@ -22,7 +24,7 @@
2224
}
2325

2426
& + p {
25-
margin-top: 1.5rem
27+
margin-top: 1.5rem;
2628
}
2729

2830
// Components examples
@@ -110,32 +112,25 @@
110112
.dark-theme {
111113
code[class*="language-"],
112114
pre[class*="language-"] {
115+
font-family: Inconsolata, Monaco, Consolas, "Courier New", Courier, monospace;
116+
hyphens: none;
117+
line-height: 1.5;
113118
color: #c5c8c6;
114-
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
115-
font-family: Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace;
116-
direction: ltr;
117119
text-align: left;
118-
white-space: pre;
119-
word-spacing: normal;
120+
text-shadow: 0 1px rgba(0, 0, 0, .3);
120121
word-break: normal;
121-
line-height: 1.5;
122-
123-
-moz-tab-size: 4;
124-
-o-tab-size: 4;
122+
word-spacing: normal;
125123
tab-size: 4;
126-
127-
-webkit-hyphens: none;
128-
-moz-hyphens: none;
129-
-ms-hyphens: none;
130-
hyphens: none;
124+
white-space: pre;
125+
direction: ltr;
131126
}
132127

133128
/* Code blocks */
134129
pre[class*="language-"] {
135130
padding: 1em;
136131
margin: .5em 0;
137132
overflow: auto;
138-
border-radius: 0.3em;
133+
border-radius: .3em;
139134
}
140135

141136
:not(pre) > code[class*="language-"],
@@ -153,7 +148,7 @@
153148
.token.prolog,
154149
.token.doctype,
155150
.token.cdata {
156-
color: #7C7C7C;
151+
color: #7c7c7c;
157152
}
158153

159154
.token.punctuation {
@@ -167,17 +162,17 @@
167162
.token.property,
168163
.token.keyword,
169164
.token.tag {
170-
color: #96CBFE;
165+
color: #96cbfe;
171166
}
172167

173168
.token.class-name {
174-
color: #FFFFB6;
169+
color: #ffffb6;
175170
text-decoration: underline;
176171
}
177172

178173
.token.boolean,
179174
.token.constant {
180-
color: #99CC99;
175+
color: #9c9;
181176
}
182177

183178
.token.symbol,
@@ -186,7 +181,7 @@
186181
}
187182

188183
.token.number {
189-
color: #FF73FD;
184+
color: #ff73fd;
190185
}
191186

192187
.token.selector,
@@ -195,42 +190,42 @@
195190
.token.char,
196191
.token.builtin,
197192
.token.inserted {
198-
color: #A8FF60;
193+
color: #a8ff60;
199194
}
200195

201196
.token.variable {
202-
color: #C6C5FE;
197+
color: #c6c5fe;
203198
}
204199

205200
.token.operator {
206-
color: #EDEDED;
201+
color: #ededed;
207202
}
208203

209204
.token.entity {
210-
color: #FFFFB6;
205+
color: #ffffb6;
211206
cursor: help;
212207
}
213208

214209
.token.url {
215-
color: #96CBFE;
210+
color: #96cbfe;
216211
}
217212

218213
.language-css .token.string,
219214
.style .token.string {
220-
color: #87C38A;
215+
color: #87c38a;
221216
}
222217

223218
.token.atrule,
224219
.token.attr-value {
225-
color: #F9EE98;
220+
color: #f9ee98;
226221
}
227222

228223
.token.function {
229-
color: #DAD085;
224+
color: #dad085;
230225
}
231226

232227
.token.regex {
233-
color: #E9C062;
228+
color: #e9c062;
234229
}
235230

236231
.token.important {

src/scss/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// If you want to override variables do it here
22
@import "variables";
33

4-
$enable-ltr: true !default;
5-
$enable-rtl: true !default;
4+
$enable-ltr: true; /* stylelint-disable-line scss/dollar-variable-default */
5+
$enable-rtl: true; /* stylelint-disable-line scss/dollar-variable-default */
66

77
// Import styles
88
@import "@coreui/coreui/scss/coreui";

src/views/404.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<meta name="msapplication-TileImage" content="assets/favicon/ms-icon-144x144.png">
3636
<meta name="theme-color" content="#ffffff">
3737
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css">
38+
<link rel="stylesheet" href="node_modules/simplebar/dist/simplebar.css">
3839
<!-- Main styles for this application-->
3940
<link href="css/style.css" rel="stylesheet">
4041
<!-- Global site tag (gtag.js) - Google Analytics-->
@@ -72,6 +73,7 @@ <h4 class="pt-3">Oops! You're lost.</h4>
7273
</div>
7374
<!-- CoreUI and necessary plugins-->
7475
<script src="node_modules/@coreui/coreui/dist/js/coreui.bundle.min.js"></script>
76+
<script src="node_modules/simplebar/dist/simplebar.min.js"></script>
7577
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.js"></script>
7678
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script>
7779
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/unescaped-markup/prism-unescaped-markup.min.js"></script>

src/views/500.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<meta name="msapplication-TileImage" content="assets/favicon/ms-icon-144x144.png">
3636
<meta name="theme-color" content="#ffffff">
3737
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css">
38+
<link rel="stylesheet" href="node_modules/simplebar/dist/simplebar.css">
3839
<!-- Main styles for this application-->
3940
<link href="css/style.css" rel="stylesheet">
4041
<!-- Global site tag (gtag.js) - Google Analytics-->
@@ -72,6 +73,7 @@ <h4 class="pt-3">Houston, we have a problem!</h4>
7273
</div>
7374
<!-- CoreUI and necessary plugins-->
7475
<script src="node_modules/@coreui/coreui/dist/js/coreui.bundle.min.js"></script>
76+
<script src="node_modules/simplebar/dist/simplebar.min.js"></script>
7577
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.js"></script>
7678
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script>
7779
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/unescaped-markup/prism-unescaped-markup.min.js"></script>

0 commit comments

Comments
 (0)