Skip to content

Commit

Permalink
Improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Dec 18, 2020
1 parent d5e6e5b commit d1abfd2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 31 deletions.
42 changes: 21 additions & 21 deletions assets/css/_addon/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ $sidebar-display: "sidebar-display";

@media (hover: hover) {
#sidebar ul > li:last-child::after {
-webkit-transition: top .5s ease;
-moz-transition: top .5s ease;
-o-transition: top .5s ease;
transition: top .5s ease;
-webkit-transition: top 0.5s ease;
-moz-transition: top 0.5s ease;
-o-transition: top 0.5s ease;
transition: top 0.5s ease;
}
}

Expand Down Expand Up @@ -243,9 +243,9 @@ $sidebar-display: "sidebar-display";
img {
width: 100%;
height: 100%;
-webkit-transition: transform .5s;
-moz-transition: transform .5s;
transition: transform .5s;
-webkit-transition: transform 0.5s;
-moz-transition: transform 0.5s;
transition: transform 0.5s;

&:hover {
-ms-transform: scale(1.2);
Expand Down Expand Up @@ -298,7 +298,7 @@ $sidebar-display: "sidebar-display";
&:not(:last-child) {
&::after {
content: "";
padding: 0 .3rem;
padding: 0 0.3rem;
}
}
}
Expand All @@ -315,7 +315,7 @@ $sidebar-display: "sidebar-display";
border-radius: 1rem;
border: 1px solid var(--search-wrapper-bg);
background: var(--search-wrapper-bg);
padding: 0 .5rem;
padding: 0 0.5rem;
i {
z-index: 2;
font-size: 0.9rem;
Expand All @@ -336,7 +336,7 @@ $sidebar-display: "sidebar-display";
background: center;
border: 0;
border-radius: 0;
padding: 0.18rem .3rem;
padding: 0.18rem 0.3rem;
color: var(--text-color);
}

Expand Down Expand Up @@ -538,8 +538,8 @@ footer {
background: none;
border: 1px solid var(--btn-border-color);
border-radius: 0.8rem;
padding: 0.3rem .5rem;
margin: 0 .35rem .5rem 0;
padding: 0.3rem 0.5rem;
margin: 0 0.35rem 0.5rem 0;
&:hover {
background-color: #2a408e;
border-color: #2a408e;
Expand Down Expand Up @@ -642,7 +642,7 @@ blockquote {
}

kbd {
margin: 0 .3rem;
margin: 0 0.3rem;
}

sup {
Expand Down Expand Up @@ -676,7 +676,7 @@ sup {

.footnote {
@at-root a#{&} {
margin: 0 .2em;
margin: 0 0.2em;
border-bottom-style: none !important;
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
transition: background-color 1.5s ease-in-out;
Expand Down Expand Up @@ -871,7 +871,7 @@ div.post-content .table-wrapper {
list-style-type: none;

> i { // checkbox icon
margin: 0 .4rem .2rem -1.4rem;
margin: 0 0.4rem 0.2rem -1.4rem;
vertical-align: middle;
color: var(--checkbox-color);
&.checked {
Expand All @@ -882,7 +882,7 @@ div.post-content .table-wrapper {
}

input[type=checkbox] {
margin: 0 .5rem .2rem -1.3rem;
margin: 0 0.5rem 0.2rem -1.3rem;
vertical-align: middle;
}

Expand All @@ -900,7 +900,7 @@ div.post-content .table-wrapper {
text-align: center;
background: var(--tag-bg);
border-radius: 0.3rem;
padding: 0 .4rem;
padding: 0 0.4rem;
color: inherit;
line-height: 1.3rem;
&:not(:last-child) {
Expand Down Expand Up @@ -984,7 +984,7 @@ div.post-content .table-wrapper {
box-shadow: none;
border-color: var(--input-focus-border-color) !important;
background: center !important;
transition: background-color .15s ease-in-out,border-color .15s ease-in-out;
transition: background-color 0.15s ease-in-out,border-color 0.15s ease-in-out;
}

/*--- Responsive Design ---*/
Expand Down Expand Up @@ -1315,8 +1315,8 @@ div.post-content .table-wrapper {
}

#search-input {
-webkit-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}

#search-result-wrapper {
Expand Down Expand Up @@ -1474,7 +1474,7 @@ div.post-content .table-wrapper {
@include icon-round(1.65rem);
line-height: 1rem;
font-size: 0.6rem;
padding: 0.5em 0 0 .1em;
padding: 0.5em 0 0 0.1em;
display: inline-block!important;
}
}
Expand Down
6 changes: 3 additions & 3 deletions assets/css/_addon/syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ div > pre {

overflow: auto;
.lineno {
margin-left: .2rem;
padding-right: .5rem;
margin-left: 0.2rem;
padding-right: 0.5rem;
min-width: 2.2rem;
text-align: right;
color: var(--highlight-lineno-color);
Expand Down Expand Up @@ -154,7 +154,7 @@ div {
position: absolute;
right: 1.8rem;
margin-top: 3px;
font-size: .7rem;
font-size: 0.7rem;
font-weight: 600;
color: var(--highlight-lineno-color);
text-transform: uppercase;
Expand Down
1 change: 0 additions & 1 deletion assets/css/_colors/light-typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
--checkbox-color: darkgrey;
--checkbox-checked-color: #07a8f7;


/* Sidebar */
--sidebar-bg: radial-gradient(
circle,
Expand Down
10 changes: 5 additions & 5 deletions assets/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
position: sticky;
top: 4rem;
transition: top 0.2s ease-in-out;
animation: fade-up .8s;
animation: fade-up 0.8s;
&.topbar-down {
top: 6rem;
}
Expand All @@ -185,9 +185,9 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
border: 1px solid var(--card-border-color);
background-color: var(--card-bg);
box-shadow: 0 0 5px 0 var(--card-box-shadow);
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
h3 {
color: var(--text-color);
}
Expand Down Expand Up @@ -339,7 +339,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
.post {
.post-meta {
>div:not(:first-child)::before {
@include dot(.5rem, .2rem);
@include dot(0.5rem, 0.2rem);
}
&.flex-column {
-webkit-box-orient: horizontal!important;
Expand Down
2 changes: 1 addition & 1 deletion tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if $_build; then
JEKYLL_ENV=production bundle exec jekyll b
fi

bundle exec htmlproofer $DEST \
bundle exec htmlproofer "$DEST" \
--disable-external \
--check-html \
--empty_alt_ignore \
Expand Down

0 comments on commit d1abfd2

Please sign in to comment.