feat(header): add Logo, pre and post config for header title (#252)
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.group-title {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@import "../_partial/_archive/terms";
|
||||
@import "../_partial/_archive/tags";
|
||||
}
|
||||
|
||||
@@ -205,7 +205,8 @@
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
min-height: 1.2rem;
|
||||
min-height: 1.25em;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
figure {
|
||||
@@ -339,10 +340,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.version img {
|
||||
min-height: 1.2rem;
|
||||
height: 1.2rem;
|
||||
vertical-align: text-bottom;
|
||||
.version {
|
||||
height: 1.25em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
.archive-item {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.categories-card {
|
||||
margin: 0 auto;
|
||||
margin-top: 3rem;
|
||||
@@ -10,7 +6,6 @@
|
||||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
padding: 0 2.5rem;
|
||||
line-height: 1.6rem;
|
||||
|
||||
.card-item {
|
||||
@@ -32,6 +27,8 @@
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: .75rem;
|
||||
}
|
||||
|
||||
span {
|
||||
@@ -42,12 +39,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.archive-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
margin: .25rem 0 .25rem 1.5rem;
|
||||
}
|
||||
|
||||
.archive-item-link {
|
||||
display: inline-block;
|
||||
min-width: 10%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 95%;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:hover {
|
||||
color: $global-link-hover-color;
|
||||
@@ -64,7 +68,7 @@
|
||||
}
|
||||
|
||||
.archive-item-date {
|
||||
float: right;
|
||||
width: 4em;
|
||||
text-align: right;
|
||||
color: $global-font-secondary-color;
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@ header {
|
||||
.dark & {
|
||||
background-color: $header-background-color-dark;
|
||||
}
|
||||
|
||||
.logo {
|
||||
min-height: 1.25em;
|
||||
height: 1.25em;
|
||||
vertical-align: text-bottom;
|
||||
padding-right: .25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.header-wrapper {
|
||||
@@ -136,7 +143,7 @@ header {
|
||||
padding: 0 1.5rem;
|
||||
|
||||
.header-title {
|
||||
font-size: $header-title-font-size-desktop;
|
||||
font-size: $header-title-font-size;
|
||||
}
|
||||
|
||||
.menu {
|
||||
@@ -203,7 +210,7 @@ header {
|
||||
@include transition(margin-top 0.3s ease 0s);
|
||||
|
||||
.header-title {
|
||||
font-size: $header-title-font-size-mobile;
|
||||
font-size: $header-title-font-size;
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ code {
|
||||
font-family: $code-font-family;
|
||||
color: $code-color;
|
||||
|
||||
img, .version img {
|
||||
min-height: 1.2 * $code-font-size;
|
||||
height: 1.2 * $code-font-size;
|
||||
img {
|
||||
min-height: 1.25em;
|
||||
max-height: 1.25em;
|
||||
}
|
||||
|
||||
.dark & {
|
||||
@@ -25,7 +25,7 @@ pre {
|
||||
|
||||
.copy-button {
|
||||
font-size: $code-font-size;
|
||||
line-height: 1.4 * $code-font-size;
|
||||
line-height: 1.4em;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@@ -129,7 +129,7 @@ code, pre, .highlight table, .highlight tr, .highlight td {
|
||||
.highlight {
|
||||
font-family: $code-font-family;
|
||||
font-size: $code-font-size;
|
||||
line-height: 1.4 * $code-font-size;
|
||||
line-height: 1.4em;
|
||||
/* Comment */ .c,
|
||||
/* CommentHashbang */ .ch,
|
||||
/* CommentMultiline */ .cm,
|
||||
|
||||
@@ -58,9 +58,7 @@ $header-background-color-dark: #252627 !default;
|
||||
|
||||
// Font style of the header title
|
||||
$header-title-font-family: $global-font-family !default;
|
||||
|
||||
$header-title-font-size-desktop: 1.5rem !default;
|
||||
$header-title-font-size-mobile: 1.5rem !default;
|
||||
$header-title-font-size: 1.5rem !default;
|
||||
|
||||
// Position of the header
|
||||
$header-position-desktop: if($header-normal-mode-desktop, static, fixed) !default;
|
||||
|
||||
Reference in New Issue
Block a user