1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Added back light shadows to admonitions

This commit is contained in:
squidfunk 2020-02-27 12:27:05 +01:00
parent eaeac798b1
commit ff9ef6a4a7
10 changed files with 19 additions and 33 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.f865046f.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.f865046f.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.55767211.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.55767211.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.926ffd9e.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.926ffd9e.min.js.map",
"assets/stylesheets/main.scss": "assets/stylesheets/main.f8a03d30.min.css",
"assets/stylesheets/main.scss": "assets/stylesheets/main.0d8ec950.min.css",
"assets/stylesheets/palette.scss": "assets/stylesheets/palette.f5f04e6f.min.css"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f8a03d30.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0d8ec950.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.f5f04e6f.min.css' | url }}">
{% endif %}
@ -195,7 +195,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.f865046f.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.55767211.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -12,11 +12,11 @@
"cyan": "#00bcd4",
"teal": "#009688",
"green": "#4caf50",
"light-green": "#7cb342",
"lime": "#c0ca33",
"yellow": "#f9a825",
"amber": "#ffa000",
"orange": "#fb8c00",
"light-green": "#8bc34a",
"lime": "#cddc39",
"yellow": "#ffee58",
"amber": "#ffc107",
"orange": "#ffa726",
"deep-orange": "#ff7043",
"brown": "#795548",
"grey": "#757575",

View File

@ -275,7 +275,7 @@ kbd {
line-height: 1.5;
box-shadow:
0 px2rem(2px) 0 px2rem(1px) var(--md-default-fg-color--lighter),
0 px2rem(2px) 0 var(--md-default-fg-color--lighter),
0 px2rem(2px) 0 var(--md-default-fg-color--lighter),
inset 0 px2rem(-2px) px2rem(4px) var(--md-default-bg-color);
word-break: break-word;
vertical-align: text-top;

View File

@ -31,21 +31,18 @@
.admonition {
margin: 1.5625em 0;
padding: 0 px2rem(12px);
border-left: px2rem(3px) solid $clr-blue-a200;
border-left: px2rem(4px) solid $clr-blue-a200;
border-radius: px2rem(2px);
font-size: ms(-1);
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($clr-blue-a200, 0.85),
inset px2rem(1px) 0 $clr-blue-a200;
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);
overflow: auto;
// Adjust for right-to-left languages
[dir="rtl"] & {
border-right: px2rem(3px) solid $clr-blue-a200;
border-right: px2rem(4px) solid $clr-blue-a200;
border-left: none;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($clr-blue-a200, 0.85),
inset px2rem(-1px) 0 $clr-blue-a200;
}
// Adjust spacing on last element
@ -79,17 +76,6 @@
&%#{nth($names, 1)},
&.#{nth($names, 1)} {
border-left-color: $tint;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($tint, 0.85),
inset px2rem(1px) 0 $tint;
// Adjust for right-to-left languages
[dir="rtl"] & {
border-right-color: $tint;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($tint, 0.85),
inset px2rem(-1px) 0 $tint;
}
// Title
> :first-child {