custon font support, dropdown child menu width adjust
This commit is contained in:
parent
f227b897df
commit
bfde1ccdf9
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
$text-font-stack: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
$text-font-stack: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
||||||
$code-font-stack: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace !default;
|
$code-font-stack: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace !default;
|
||||||
$title-font: 'Montserrat', sans-serif;
|
|
||||||
$content-font: 'Merriweather', serif;
|
|
||||||
|
|
||||||
$z-indexes: ("modal", "navbar", "dropdown", "header", "clipboard", "grid", "search-btn", "search", "content", "footer", "taxo", "toc", "gallery-mask");
|
$z-indexes: ("modal", "navbar", "dropdown", "header", "clipboard", "grid", "search-btn", "search", "content", "footer", "taxo", "toc", "gallery-mask");
|
||||||
|
|
||||||
|
|
|
@ -89,10 +89,13 @@
|
||||||
&-item {
|
&-item {
|
||||||
padding: 0.25rem 0.75rem;
|
padding: 0.25rem 0.75rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
min-width: 40px;
|
||||||
|
max-width: 150px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
||||||
|
@include truncate(150px);
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed("dropdown-item-color");
|
color: themed("dropdown-item-color");
|
||||||
@include on-event {
|
@include on-event {
|
||||||
|
|
|
@ -245,11 +245,14 @@
|
||||||
padding: 0.25rem 0.75rem;
|
padding: 0.25rem 0.75rem;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
min-width: 40px;
|
||||||
|
max-width: 150px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
||||||
|
@include truncate(150px);
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed("dropdown-item-color");
|
color: themed("dropdown-item-color");
|
||||||
@include on-event {
|
@include on-event {
|
||||||
|
@ -266,6 +269,8 @@
|
||||||
|
|
||||||
@include respond-to(sm) {
|
@include respond-to(sm) {
|
||||||
padding-left: 2.5rem;
|
padding-left: 2.5rem;
|
||||||
|
min-width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
{"Target":"css/custom.min.css","MediaType":"text/css","Data":{}}
|
|
File diff suppressed because one or more lines are too long
|
@ -12,9 +12,13 @@
|
||||||
{{ if eq $translation.Lang .Lang }}
|
{{ if eq $translation.Lang .Lang }}
|
||||||
{{ $selected := false }}
|
{{ $selected := false }}
|
||||||
{{ if eq $pageLang .Lang }}
|
{{ if eq $pageLang .Lang }}
|
||||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item is-active">{{ .LanguageName }}</a>
|
{{ if .LanguageName }}
|
||||||
|
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item is-active">{{ .LanguageName }}</a>
|
||||||
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item">{{ .LanguageName }}</a>
|
{{ if .LanguageName }}
|
||||||
|
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item">{{ .LanguageName }}</a>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue