custon font support, dropdown child menu width adjust

This commit is contained in:
zzossig 2019-12-04 17:52:57 +09:00
parent f227b897df
commit bfde1ccdf9
7 changed files with 15 additions and 6 deletions

View File

@ -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;
$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");

View File

@ -89,10 +89,13 @@
&-item {
padding: 0.25rem 0.75rem;
height: 100%;
min-width: 40px;
max-width: 150px;
text-decoration: none;
display: block;
font-size: 1rem;
@include truncate(150px);
@include themify($themes) {
color: themed("dropdown-item-color");
@include on-event {

View File

@ -245,11 +245,14 @@
padding: 0.25rem 0.75rem;
height: auto;
margin: auto;
min-width: 40px;
max-width: 150px;
text-decoration: none;
display: block;
font-size: 1rem;
font-weight: 700;
@include truncate(150px);
@include themify($themes) {
color: themed("dropdown-item-color");
@include on-event {
@ -266,6 +269,8 @@
@include respond-to(sm) {
padding-left: 2.5rem;
min-width: 100%;
max-width: 100%;
}
}
}

View File

@ -1 +0,0 @@
{"Target":"css/custom.min.css","MediaType":"text/css","Data":{}}

View File

@ -12,13 +12,17 @@
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang }}
{{ if .LanguageName }}
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item is-active">{{ .LanguageName }}</a>
{{ end }}
{{ else }}
{{ if .LanguageName }}
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item">{{ .LanguageName }}</a>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ end }}