Skip to content

Commit

Permalink
grunt & format
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxpro committed Jun 21, 2020
1 parent c9acbc7 commit a19be51
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 168 deletions.
12 changes: 6 additions & 6 deletions css/hux-blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@
}
.side-catalog .catalog-body .active {
border-radius: 4px;
background-color: #F5F5F5;
background-color: #f5f5f5;
}
.side-catalog .catalog-body .active a {
color: #0085a1!important;
color: #0085a1 !important;
}
@media (max-width: 1200px) {
.side-catalog {
Expand Down Expand Up @@ -247,12 +247,12 @@
color: #fff;
}
.paper-button[disabled] {
background-color: #EAEAEA !important;
color: #A8A8A8 !important;
background-color: #eaeaea !important;
color: #a8a8a8 !important;
cursor: auto;
}
.paper-button:hover {
background-color: #EAEAEA;
background-color: #eaeaea;
}
.paper-button.raised-button.colored:hover {
background-color: #3367d6;
Expand Down Expand Up @@ -1521,7 +1521,7 @@ img::-moz-selection {
#tag_cloud a.tag-button--all,
#tag_cloud .tag.tag-button--all {
font-weight: 700;
color: #0085a1!important;
color: #0085a1 !important;
}
#tag_cloud a.tag-button--all:hover,
#tag_cloud .tag.tag-button--all:hover,
Expand Down
2 changes: 1 addition & 1 deletion css/hux-blog.min.css

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions less/highlight.less
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ pre.highlight {
word-wrap: normal; // Safari Bug
}
.rouge-table {
.rouge-gutter, .rouge-code {
.rouge-gutter,
.rouge-code {
border: 0 !important;
}
}
Expand Down Expand Up @@ -260,15 +261,15 @@ pre.highlight {
}
}
/* Landscape phones and down */
@media (max-width: 480px) {
@media (max-width: 480px) {
.highlighter-rouge .highlight {
margin-left: -15px;
margin-right: -15px;
border-radius: 0px;
td.rouge-gutter {
width: 36px;
}
table>tbody>tr>td>pre {
table > tbody > tr > td > pre {
padding: 14px 10px;
}
}
Expand Down
60 changes: 39 additions & 21 deletions less/hux-blog.less
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ select {
}

// override table style in bootstrap
table{
table {
margin-top: 10px;
}
table.table > tbody, table.table > thead {
table.table > tbody,
table.table > thead {
th,
td {
border: 1px solid #eee !important;
Expand Down Expand Up @@ -186,7 +187,8 @@ samp {
margin-top: 10px;
}
}
h5, h6 {
h5,
h6 {
font-size: 20px;
font-weight: 600;
color: gray;
Expand All @@ -196,11 +198,22 @@ samp {
}
// downscale the font a little bit in mobile
@media screen and (max-width: 768px) {
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 20px; }
h4 { font-size: 19px; }
h5, h6 { font-size: 18px; }
h1 {
font-size: 30px;
}
h2 {
font-size: 22px;
}
h3 {
font-size: 20px;
}
h4 {
font-size: 19px;
}
h5,
h6 {
font-size: 18px;
}
}
ul,
ol {
Expand Down Expand Up @@ -257,7 +270,7 @@ samp {
}
.anchorjs-link {
// I can not understand this but this made anchor always in the same line as title
position: absolute;
position: absolute;
text-decoration: none !important;
}
}
Expand Down Expand Up @@ -414,7 +427,7 @@ samp {
&:active {
background-color: rgba(0, 0, 0, 0.05);
}
.icon-bar{
.icon-bar {
background-color: @gray-dark;
}
}
Expand Down Expand Up @@ -498,12 +511,13 @@ samp {
.page-heading {
padding: 85px 0 20px;
color: @gray-dark;
.subheading{
.subheading {
margin-bottom: 15px;
}
}
.tags {
a, .tag {
a,
.tag {
border-color: @gray-dark;
color: @gray-dark;
&:hover,
Expand Down Expand Up @@ -837,11 +851,13 @@ img::-moz-selection {
.tags {
margin-bottom: -5px;
&.tags-sup {
a, .tag {
a,
.tag {
padding: 0 10px 0 12px;
}
}
a, .tag {
a,
.tag {
display: inline-block;
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 999em;
Expand Down Expand Up @@ -895,13 +911,16 @@ img::-moz-selection {
&.focus {
background-color: #0085a1 !important;
}
&.focus{
box-shadow: rgba(0,0,0,.117647) 0 1px 6px, rgba(0,0,0,.239216) 0 1px 4px;
&.focus {
box-shadow: rgba(0, 0, 0, 0.117647) 0 1px 6px,
rgba(0, 0, 0, 0.239216) 0 1px 4px;
}
&.tag-button--all {
font-weight: 700;
color: #0085a1!important;
&:hover, &:active, &.focus{
color: #0085a1 !important;
&:hover,
&:active,
&.focus {
background-color: #e4e4e4 !important;
}
}
Expand Down Expand Up @@ -1005,7 +1024,6 @@ img::-moz-selection {
}
}


/* Hux customize Style for navBar button */

.navbar-default .navbar-toggle {
Expand Down Expand Up @@ -1076,11 +1094,11 @@ img::-moz-selection {
}

// MathJax Overflow
.MathJax_SVG_Display{
.MathJax_SVG_Display {
overflow: auto;
-webkit-overflow-scrolling: touch;
}

.no-scroll {
overflow-y: hidden;
}
}
10 changes: 5 additions & 5 deletions less/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
z-index: 100;
background: #fff;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1);
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1);
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1);
-webkit-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
transform: translate(0, 100%);
Expand All @@ -18,7 +18,7 @@
-webkit-transform: translate(0, 0) scale(1, 1);
-ms-transform: translate(0, 0) scale(1, 1);
transform: translate(0, 0) scale(1, 1);
#search-input {
#search-input {
opacity: 1;
}
}
Expand All @@ -28,7 +28,7 @@
height: 100%;
.row,
.row > div {
height: 100%
height: 100%;
}
}

Expand All @@ -52,8 +52,8 @@
border: none;
outline: none;
opacity: 0;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
-webkit-transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
transition: all 400ms cubic-bezier(0.32, 1, 0.23, 1) 250ms;
@media only screen and (min-width: 768px) {
margin-left: 20px;
}
Expand Down
Loading

0 comments on commit a19be51

Please sign in to comment.