mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Added palette colors for tabs
This commit is contained in:
parent
0eee81b048
commit
eb6aedf5cc
@ -7,7 +7,9 @@ mkdocs-material-1.1.0 (2017-xx-xx)
|
|||||||
* Fixed #175: Tables cannot be set to 100% width
|
* Fixed #175: Tables cannot be set to 100% width
|
||||||
* Fixed #173: Dictionary elements have no bottom spacing
|
* Fixed #173: Dictionary elements have no bottom spacing
|
||||||
* Fixed race conditions in build related to asset revisioning
|
* Fixed race conditions in build related to asset revisioning
|
||||||
|
* Fixed accidentally re-introduced Permalink on top-level headline
|
||||||
* Refactored and automated Docker build and PyPI release
|
* Refactored and automated Docker build and PyPI release
|
||||||
|
* Refactored build scripts
|
||||||
* Refactored styles related to tables
|
* Refactored styles related to tables
|
||||||
|
|
||||||
mkdocs-material-1.0.5 (2017-02-18)
|
mkdocs-material-1.0.5 (2017-02-18)
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -32,9 +32,9 @@
|
|||||||
<script src="{{ base_url }}/assets/javascripts/modernizr-56ade86843.js"></script>
|
<script src="{{ base_url }}/assets/javascripts/modernizr-56ade86843.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4ee152c883.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-45f91e8d31.css">
|
||||||
{% if config.extra.palette %}
|
{% if config.extra.palette %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-49c4a440b6.palette.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block fonts %}
|
{% block fonts %}
|
||||||
|
@ -135,6 +135,20 @@ button[data-md-color-accent] {
|
|||||||
border-left: 0.4rem solid $color;
|
border-left: 0.4rem solid $color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// [screen +]: Set background color for tabs
|
||||||
|
@include break-from-device(screen) {
|
||||||
|
|
||||||
|
// Tabs with outline
|
||||||
|
.md-tabs {
|
||||||
|
background: mix($color, $md-color-black, 75%);
|
||||||
|
|
||||||
|
// Fade-out tabs background upon scrolling
|
||||||
|
&[data-md-state="hidden"] {
|
||||||
|
background: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
// Application header (stays always on top)
|
// Application header (stays always on top)
|
||||||
.md-header {
|
.md-header {
|
||||||
@include z-depth(3);
|
@include z-depth(2);
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
// Always show shadow, in case JavaScript is not available
|
// Always show shadow, in case JavaScript is not available
|
||||||
.no-js & {
|
.no-js & {
|
||||||
@include z-depth(3);
|
@include z-depth(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [screen +]: Show shadow depending on scroll offset
|
// [screen +]: Show shadow depending on scroll offset
|
||||||
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
// Show and animate shadow
|
// Show and animate shadow
|
||||||
&[data-md-state="shadow"] {
|
&[data-md-state="shadow"] {
|
||||||
@include z-depth(3);
|
@include z-depth(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,11 +79,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide tabs upon scrolling - disable transition to minimizes repaints whilte
|
// Fade-out tabs background upon scrolling
|
||||||
// scrolling down, while scrolling up seems to be okay
|
|
||||||
&[data-md-state="hidden"] {
|
&[data-md-state="hidden"] {
|
||||||
background: $md-color-primary;
|
background: $md-color-primary;
|
||||||
|
|
||||||
|
// Hide tabs upon scrolling - disable transition to minimizes repaints whilte
|
||||||
|
// scrolling down, while scrolling up seems to be okay
|
||||||
.md-tabs__link {
|
.md-tabs__link {
|
||||||
transform: translateY(50%);
|
transform: translateY(50%);
|
||||||
transition:
|
transition:
|
||||||
|
Loading…
Reference in New Issue
Block a user