Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 2b9da56

Browse files
author
Dmitry Warkentin
committed
Fix CSS for TAB Navigation
1 parent d7c44d1 commit 2b9da56

21 files changed

+145
-97
lines changed

blog/static/css/styles.css

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,47 @@
4545
-webkit-font-smoothing: subpixel-antialiased;
4646
}
4747

48-
input[type=text]::-ms-clear { display: none; width : 0; height: 0; }
49-
input[type=text]::-ms-reveal { display: none; width : 0; height: 0; }
48+
input[type=text]::-ms-clear {
49+
display: none;
50+
width: 0;
51+
height: 0;
52+
}
53+
54+
input[type=text]::-ms-reveal {
55+
display: none;
56+
width: 0;
57+
height: 0;
58+
}
59+
5060
input[type="search"]::-webkit-search-decoration,
5161
input[type="search"]::-webkit-search-cancel-button,
5262
input[type="search"]::-webkit-search-results-button,
53-
input[type="search"]::-webkit-search-results-decoration { display: none; }
63+
input[type="search"]::-webkit-search-results-decoration {
64+
display: none;
65+
}
5466

55-
:active, :hover, :focus {
67+
:active, :hover {
5668
outline: 0;
5769
outline-offset: 0;
5870
}
5971

72+
a:focus {
73+
outline: -webkit-focus-ring-color auto 1px;
74+
}
75+
76+
input.search-action:focus {
77+
outline: 0;
78+
}
79+
6080
.figure-caption {
61-
font-size: 94% ;
62-
margin-top: -1.7rem ;
81+
font-size: 94%;
82+
margin-top: -1.7rem;
6383
}
6484

6585
.table {
66-
max-width: 840px ;
67-
margin-top: 1.4rem ;
68-
margin-bottom: 1.4rem ;
86+
max-width: 840px;
87+
margin-top: 1.4rem;
88+
margin-bottom: 1.4rem;
6989
}
7090

7191
body {
@@ -158,16 +178,17 @@ a, .link {
158178
text-decoration: none !important;
159179
}
160180

161-
a:hover, .link:hover {
181+
a:hover, .link:hover, .blog-links a:focus {
162182
background-color: rgba(71, 124, 188, 0.1);
163183
border-radius: 2px;
164-
border-color: var(--linkColor)
184+
border-color: var(--linkColor);
185+
outline: 0;
165186
}
166187

167188
.container {
168189
min-width: 320px;
169190
max-width: 1600px;
170-
padding-top: 1.5rem ;
191+
padding-top: 1.5rem;
171192
margin: auto auto auto 4rem
172193
}
173194

@@ -236,7 +257,6 @@ nav {
236257
margin-right: 0
237258
}
238259

239-
240260
span.links-dots {
241261
font-family: i8mono, "Consolas", "Menlo", "Courier New", monospace
242262
}
@@ -281,21 +301,19 @@ span.links-dots {
281301
}
282302

283303
button.action-search-btn {
284-
display: flex;
285-
width: 60px;
286-
height: 100%;
287-
position: relative;
288304
float: right;
289-
justify-content: center;
290305
margin-top: 12px;
291-
align-items: center;
292306
background: transparent;
293307
border: 0;
294308
cursor: pointer;
295309
outline: 0;
296310
outline-offset: 0;
297311
}
298312

313+
button.action-search-btn:focus {
314+
outline: -webkit-focus-ring-color auto 1px;
315+
}
316+
299317
h1.list-title {
300318
font-family: i8sans, "Helvetica Neue", "Arial", sans-serif;
301319
font-size: 96px;
@@ -338,11 +356,11 @@ article.post p {
338356
}
339357

340358
article.post p:last-of-type {
341-
margin-bottom: 0
359+
margin-bottom: 0
342360
}
343361

344362
article.post p:last-of-type {
345-
margin-bottom: 0
363+
margin-bottom: 0
346364
}
347365

348366
article.post img {
@@ -353,7 +371,7 @@ article.post img {
353371
}
354372

355373
article.post li {
356-
padding-bottom: 6px
374+
padding-bottom: 6px
357375
}
358376

359377
img.mac-scr {
@@ -510,7 +528,7 @@ span.discussion-meta {
510528
}
511529

512530
.pagination {
513-
font-size: 14px ;
531+
font-size: 14px;
514532
margin-left: 5rem
515533
}
516534

@@ -717,7 +735,7 @@ ol.square-list {
717735
}
718736

719737
.hljs {
720-
background: transparent ;
738+
background: transparent;
721739
border-radius: 4px;
722740
font-size: 16px;
723741
line-height: 1.4;
@@ -733,7 +751,7 @@ ol.square-list {
733751
padding: 3rem 0 0 0
734752
}
735753

736-
h1.list-title{
754+
h1.list-title {
737755
padding: 3.6rem 0 1rem 0;
738756
line-height: 86px
739757
}
@@ -753,7 +771,6 @@ ol.square-list {
753771
.pagination {
754772
margin-left: 0
755773
}
756-
757774
}
758775

759776
@media (max-width: 991px) {
@@ -781,7 +798,7 @@ ol.square-list {
781798
padding-left: 0
782799
}
783800

784-
h1.list-title{
801+
h1.list-title {
785802
font-size: 82px;
786803
line-height: 78px;
787804
padding: 3.6rem 0 1rem 0
@@ -803,7 +820,7 @@ ol.square-list {
803820
opacity: 1
804821
}
805822

806-
.search:focus-within{
823+
.search:focus-within {
807824
opacity: 1
808825
}
809826

@@ -946,7 +963,6 @@ ol.square-list {
946963
}
947964
}
948965

949-
950966
@media (max-width: 425px) {
951967
article.post {
952968
padding: 1.6rem 0 0 0
@@ -1020,7 +1036,7 @@ ol.square-list {
10201036
}
10211037

10221038
.discussion-item.marked-comment, .reply-item.marked-comment {
1023-
padding-right: 1rem
1039+
padding-right: 1rem
10241040
}
10251041

10261042
.pagination-shortcut {

blog/static/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog/templates/blog/includes/blog_header_template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div class="col-xl-3 col-md-1 col-lg-3 col-md-9 col-sm-12 col-12">
3737
<div class="search">
3838
<button class="action-search-btn">
39-
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
39+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
4040
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z">
4141
</path>
4242
</svg>

0 commit comments

Comments
 (0)