Skip to content

Commit 355bdef

Browse files
author
Владислав Прусаков
committed
Publish deploy 2020-04-15 12:53
1 parent a36a00e commit 355bdef

File tree

12 files changed

+187
-87
lines changed

12 files changed

+187
-87
lines changed

Images/error.svg

Lines changed: 4 additions & 0 deletions
Loading

Images/info.svg

Lines changed: 4 additions & 0 deletions
Loading

Images/warning.svg

Lines changed: 4 additions & 0 deletions
Loading

codesyntax.css

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22
/* Generated by `CodeSyntaxCSSGeneratorPlugin` https://github.com/SpectralDragon/CodeSyntaxCSSGeneratorPlugin */
33

44

5-
pre code .s-keyword {
6-
color: #A90D91FF
7-
}
8-
9-
pre code .s-comment {
10-
color: #007400FF
11-
}
12-
135
pre code .s-number {
146
color: #1C00CEFF
157
}
168

17-
pre code .s-dotAccess {
18-
color: #25464AFF
9+
pre code .s-property {
10+
color: #3E6D74FF
11+
}
12+
13+
pre code .s-string {
14+
color: #C41A15FF
1915
}
2016

2117
pre code .s-type {
@@ -26,56 +22,60 @@ pre code .s-preprocessing {
2622
color: #63381FFF
2723
}
2824

29-
pre code .s-call {
30-
color: #25464AFF
25+
pre code .s-keyword {
26+
color: #A90D91FF
3127
}
3228

33-
pre code .s-property {
34-
color: #3E6D74FF
29+
pre code .s-comment {
30+
color: #007400FF
3531
}
3632

37-
pre code .s-string {
38-
color: #C41A15FF
33+
pre code .s-dotAccess {
34+
color: #25464AFF
35+
}
36+
37+
pre code .s-call {
38+
color: #25464AFF
3939
}
4040

4141

4242

4343
@media(prefers-color-scheme: dark) {
4444

45-
pre code .s-call {
46-
color: #67B6A3FF
47-
}
48-
49-
pre code .s-property {
50-
color: #67B6A3FF
45+
pre code .s-keyword {
46+
color: #FC5FA2FF
5147
}
5248

5349
pre code .s-type {
5450
color: #9EF0DDFF
5551
}
5652

57-
pre code .s-keyword {
58-
color: #FC5FA2FF
53+
pre code .s-preprocessing {
54+
color: #FC8E3EFF
5955
}
6056

6157
pre code .s-comment {
6258
color: #6C7985FF
6359
}
6460

65-
pre code .s-dotAccess {
61+
pre code .s-call {
6662
color: #67B6A3FF
6763
}
6864

69-
pre code .s-string {
70-
color: #FC695DFF
65+
pre code .s-dotAccess {
66+
color: #67B6A3FF
7167
}
7268

7369
pre code .s-number {
7470
color: #CFBF69FF
7571
}
7672

77-
pre code .s-preprocessing {
78-
color: #FC8E3EFF
73+
pre code .s-string {
74+
color: #FC695DFF
75+
}
76+
77+
pre code .s-property {
78+
color: #67B6A3FF
7979
}
8080

8181

feed.rss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content"><channel><title>LiteCode</title><description>A description of Blog</description><link>https://litecode.dev</link><language>en</language><lastBuildDate>Mon, 13 Apr 2020 02:04:26 +0300</lastBuildDate><pubDate>Mon, 13 Apr 2020 02:04:26 +0300</pubDate><ttl>250</ttl><atom:link href="https://litecode.dev/feed.rss" rel="self" type="application/rss+xml"/><item><guid isPermaLink="true">https://litecode.dev/posts/first-post</guid><title>Custom NavigationView style</title><description>Create your own NavigationViewStyle.</description><link>https://litecode.dev/posts/first-post</link><pubDate>Fri, 3 Apr 2020 19:22:00 +0300</pubDate><content:encoded><![CDATA[<h1>Custom NavigationView style</h1><p>Hello everybody, today we will talk about custom NavigationViewStyle.</p><pre><code><span class="s-keyword">import</span> SwiftUI
1+
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content"><channel><title>LiteCode</title><description>A personal blog of LiteCode Team</description><link>https://litecode.dev</link><language>en</language><lastBuildDate>Wed, 15 Apr 2020 05:11:47 +0300</lastBuildDate><pubDate>Wed, 15 Apr 2020 05:11:47 +0300</pubDate><ttl>250</ttl><atom:link href="https://litecode.dev/feed.rss" rel="self" type="application/rss+xml"/><item><guid isPermaLink="true">https://litecode.dev/posts/first-post</guid><title>Custom NavigationView style</title><description>Create your own NavigationViewStyle.</description><link>https://litecode.dev/posts/first-post</link><pubDate>Fri, 3 Apr 2020 19:22:00 +0300</pubDate><content:encoded><![CDATA[<h1>Custom NavigationView style</h1><p>Hello everybody, today we will talk about custom NavigationViewStyle.</p><pre><code><span class="s-keyword">import</span> SwiftUI
22
33
<span class="s-keyword">struct</span> ContentView: <span class="s-type">View</span> {
44
@@ -11,4 +11,17 @@
1111
.<span class="s-call">navigationViewStyle</span>(<span class="s-type">DefaultNavigationViewStyle</span>())
1212
}
1313
}
14-
</code></pre><p>If we'll look into documentationm we doesn't see any method in protocol <code>NavigationViewStyle</code>, but if we implemented this method in class</p>]]></content:encoded></item></channel></rss>
14+
</code></pre><p>If we'll look into documentationm we doesn't see any method in protocol <code>NavigationViewStyle</code>, but if we implemented this method in class</p><blockquote><p>Some interresting thing</p></blockquote><blockquote class="blockquote-warning"><p>Some shits happend tho</p><pre><code><span class="s-keyword">import</span> SwiftUI
15+
16+
<span class="s-keyword">struct</span> ContentView: <span class="s-type">View</span> {
17+
18+
<span class="s-keyword">@State var</span> kek: <span class="s-type">String</span> = <span class="s-string">"KEEEEK"</span>
19+
20+
<span class="s-keyword">var</span> body: <span class="s-keyword">some</span> <span class="s-type">View</span> {
21+
<span class="s-type">NavigationView</span> {
22+
<span class="s-type">Text</span>(<span class="s-string">"some text"</span>)
23+
}
24+
.<span class="s-call">navigationViewStyle</span>(<span class="s-type">DefaultNavigationViewStyle</span>())
25+
}
26+
}
27+
</code></pre></blockquote><blockquote class="blockquote-error"><p>Some warning text some shit and etc other</p></blockquote><blockquote class="blockquote-info"><p>Some info <code>information</code></p></blockquote>]]></content:encoded></item></channel></rss>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><meta name="og:site_name" content="LiteCode"/><link rel="canonical" href="https://litecode.dev"/><meta name="twitter:url" content="https://litecode.dev"/><meta name="og:url" content="https://litecode.dev"/><title>LiteCode</title><meta name="twitter:title" content="LiteCode"/><meta name="og:title" content="LiteCode"/><meta name="description" content="A description of Blog"/><meta name="twitter:description" content="A description of Blog"/><meta name="og:description" content="A description of Blog"/><meta name="twitter:card" content="summary"/><link rel="stylesheet" href="/main.css" type="text/css"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="shortcut icon" href="/images/favicon.png" type="image/png"/><link rel="alternate" href="/feed.rss" type="application/rss+xml" title="Subscribe to LiteCode"/><meta name="twitter:image" content="https://litecode.dev/Images"/><meta name="og:image" content="https://litecode.dev/Images"/><meta name="keywords" content="swift ios development apple watch iphone ipad swiftui uikit dev wwdc tutorial guide catalyst playground spectraldragon"/><script async src="https://www.googletagmanager.com/gtag/js?id=UA-73980658-4"></script><script>window.dataLayer = window.dataLayer || [];
1+
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><meta name="og:site_name" content="LiteCode"/><link rel="canonical" href="https://litecode.dev"/><meta name="twitter:url" content="https://litecode.dev"/><meta name="og:url" content="https://litecode.dev"/><title>LiteCode</title><meta name="twitter:title" content="LiteCode"/><meta name="og:title" content="LiteCode"/><meta name="description" content="A personal blog of LiteCode Team"/><meta name="twitter:description" content="A personal blog of LiteCode Team"/><meta name="og:description" content="A personal blog of LiteCode Team"/><meta name="twitter:card" content="summary"/><link rel="stylesheet" href="/main.css" type="text/css"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="shortcut icon" href="/images/favicon.png" type="image/png"/><link rel="alternate" href="/feed.rss" type="application/rss+xml" title="Subscribe to LiteCode"/><meta name="twitter:image" content="https://litecode.dev/Images"/><meta name="og:image" content="https://litecode.dev/Images"/><meta name="keywords" content="swift ios development apple watch iphone ipad swiftui uikit dev wwdc tutorial guide catalyst playground spectraldragon"/><script async src="https://www.googletagmanager.com/gtag/js?id=UA-73980658-4"></script><script>window.dataLayer = window.dataLayer || [];
22
function gtag(){dataLayer.push(arguments);}
33
gtag('js', new Date());
44

main.css

Lines changed: 91 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,27 @@ html {
121121
}
122122

123123
.about_me {
124-
display: inline-block;
124+
display: inline-flex;
125+
margin-top: 20px;
126+
margin-bottom: 4rem;
127+
margin-left: auto;
128+
margin-right: auto;
125129
/* justify-content: center; */
126130
}
127131

132+
.author_info {
133+
display: inline;
134+
margin: auto 8px;
135+
}
136+
137+
.author_info p {
138+
margin: 0;
139+
}
140+
141+
.author_info h2 {
142+
margin: 2px 0px;
143+
}
144+
128145
.avatar {
129146
border-radius: 50%;
130147
width: 100px;
@@ -273,30 +290,6 @@ ul {
273290
margin-bottom: 7px;
274291
}
275292

276-
.tags .variant-a {
277-
background-color: rgba(45, 117, 192, 0.3);
278-
color: #2D75C0;
279-
font-weight: bold;
280-
}
281-
282-
.tags .variant-с {
283-
background-color: rgba(161, 79, 239, 0.3);
284-
color: #A14FEF;
285-
font-weight: bold;
286-
}
287-
288-
.tags .variant-с:hover {
289-
background-color: rgba(161, 79, 239, 0.5);
290-
}
291-
292-
.tags .variant-a:hover {
293-
background-color: rgba(45, 117, 192, 0.5);
294-
}
295-
296-
.tags .variant-d:hover {
297-
background-color: rgba(244, 63, 50, 0.5);
298-
}
299-
300293
article .tags {
301294
display: flex;
302295
margin-bottom: 5px;
@@ -306,10 +299,12 @@ article .tags {
306299
cursor: pointer;
307300
}
308301

309-
.tags .variant-d {
310-
background-color: rgba(244, 63, 50, 0.3);
311-
color: #F25F5C;
302+
.tag-in-search {
312303
font-weight: bold;
304+
border-radius: 8px;
305+
margin-bottom: 7px;
306+
padding: 3px 6px;
307+
margin-right: 10px;
313308
}
314309

315310
/* Article */
@@ -320,6 +315,58 @@ article p {
320315
line-height: 1.5;
321316
}
322317

318+
article blockquote {
319+
padding-top: 16px;
320+
padding-bottom: 16px;
321+
padding-left: 1.25rem;
322+
padding-right: 1.25rem;
323+
margin-inline-start: 0px;
324+
margin-inline-end: 0px;
325+
border-left: 0.25rem solid #111111;
326+
background-color: #efefef;
327+
border-top-right-radius: 8px;
328+
border-bottom-right-radius: 8px;
329+
}
330+
331+
article blockquote::before {
332+
content: " ";
333+
background-size: 24px 24px;
334+
width: 24px;
335+
height: 24px;
336+
position: absolute;
337+
display: block;
338+
margin-left: -34px;
339+
margin-top: 10px;
340+
z-index: 100;
341+
}
342+
343+
article .blockquote-warning {
344+
background-color: rgba(255, 190, 11, 0.3);
345+
border-left: 0.25rem solid rgba(255, 190, 11, 1);
346+
}
347+
348+
article .blockquote-warning::before {
349+
background-image: url("/Images/warning.svg");
350+
}
351+
352+
article .blockquote-error::before {
353+
background-image: url("/Images/error.svg")
354+
}
355+
356+
article .blockquote-info::before {
357+
background-image: url("/Images/info.svg")
358+
}
359+
360+
article .blockquote-error {
361+
background-color: rgba(255, 15, 83, 0.3);
362+
border-left: 0.25rem solid rgba(255, 15, 83, 1);
363+
}
364+
365+
article .blockquote-info {
366+
background-color: rgba(102, 199, 244, 0.3);
367+
border-left: 0.25rem solid rgba(102, 199, 244, 1);
368+
}
369+
323370
/* Code */
324371

325372
code {
@@ -330,7 +377,7 @@ article p code,
330377
article li code {
331378
background-color: #efefef;
332379
display: inline-block;
333-
padding: 2px 6px;
380+
padding: 0px 5px;
334381
border-radius: 4px;
335382
margin: 1px;
336383
}
@@ -359,6 +406,10 @@ pre code {
359406
-webkit-overflow-scrolling: touch;
360407
}
361408

409+
blockquote pre code {
410+
font-size: 0.85em;
411+
}
412+
362413
pre code .highlight {
363414
border: 1px solid #ffe000;
364415
border-radius: 5px;
@@ -381,6 +432,11 @@ pre code .highlight {
381432
h1, h2, h3, h4, h5, h6 {
382433
color: #ffffff;
383434
}
435+
436+
article blockquote {
437+
border-left: 0.25rem solid #dddddd;
438+
background-color: #111111;
439+
}
384440

385441
.separator {
386442
border-top: 0.5px solid rgba(255,255,255,0.1);
@@ -531,6 +587,12 @@ pre code .highlight {
531587
height: 70px;
532588
}
533589

590+
blockquote pre code {
591+
margin-left: -12px;
592+
margin-right: -12px;
593+
border-radius: 12px;
594+
}
595+
534596
pre code {
535597
margin-left: -16px;
536598
margin-right: -16px;

posts/first-post/index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,17 @@
1515
.<span class="s-call">navigationViewStyle</span>(<span class="s-type">DefaultNavigationViewStyle</span>())
1616
}
1717
}
18-
</code></pre><p>If we'll look into documentationm we doesn't see any method in protocol <code>NavigationViewStyle</code>, but if we implemented this method in class</p></article></div><footer class="footer"><div class="footer-container content-restriction"><hr/><div class="about_me"><img class="avatar" src="/Images/vprusakov.jpg" alt="Vladislav Prusakov Profile Picture"/><p>made by Vladislav Prusakov</p></div></div></footer></body></html>
18+
</code></pre><p>If we'll look into documentationm we doesn't see any method in protocol <code>NavigationViewStyle</code>, but if we implemented this method in class</p><blockquote><p>Some interresting thing</p></blockquote><blockquote class="blockquote-warning"><p>Some shits happend tho</p><pre><code><span class="s-keyword">import</span> SwiftUI
19+
20+
<span class="s-keyword">struct</span> ContentView: <span class="s-type">View</span> {
21+
22+
<span class="s-keyword">@State var</span> kek: <span class="s-type">String</span> = <span class="s-string">"KEEEEK"</span>
23+
24+
<span class="s-keyword">var</span> body: <span class="s-keyword">some</span> <span class="s-type">View</span> {
25+
<span class="s-type">NavigationView</span> {
26+
<span class="s-type">Text</span>(<span class="s-string">"some text"</span>)
27+
}
28+
.<span class="s-call">navigationViewStyle</span>(<span class="s-type">DefaultNavigationViewStyle</span>())
29+
}
30+
}
31+
</code></pre></blockquote><blockquote class="blockquote-error"><p>Some warning text some shit and etc other</p></blockquote><blockquote class="blockquote-info"><p>Some info <code>information</code></p></blockquote></article></div><footer class="footer"><div class="footer-container content-restriction"><hr/><div class="about_me"><img class="avatar" src="/Images/vprusakov.jpg" alt="Vladislav Prusakov Profile Picture"/><p>made by Vladislav Prusakov</p></div></div></footer></body></html>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"><url><loc>https://litecode.dev/posts</loc><changefreq>daily</changefreq><priority>1.0</priority><lastmod>2020-04-03</lastmod></url><url><loc>https://litecode.dev/posts/first-post</loc><changefreq>monthly</changefreq><priority>0.5</priority><lastmod>2020-04-13</lastmod></url></urlset>
1+
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"><url><loc>https://litecode.dev/posts</loc><changefreq>daily</changefreq><priority>1.0</priority><lastmod>2020-04-03</lastmod></url><url><loc>https://litecode.dev/posts/first-post</loc><changefreq>monthly</changefreq><priority>0.5</priority><lastmod>2020-04-15</lastmod></url></urlset>

0 commit comments

Comments
 (0)