mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Slight facelift of data tables
This commit is contained in:
parent
8a8d5742c0
commit
f0615fe1e0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/stylesheets/main.75c97395.min.css
vendored
Normal file
2
material/assets/stylesheets/main.75c97395.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.75c97395.min.css.map
Normal file
1
material/assets/stylesheets/main.75c97395.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1118c9be.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.75c97395.min.css' | url }}">
|
||||||
{% if config.theme.palette %}
|
{% if config.theme.palette %}
|
||||||
{% set palette = config.theme.palette %}
|
{% set palette = config.theme.palette %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.ba0d045b.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.ba0d045b.min.css' | url }}">
|
||||||
@ -223,7 +223,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.8fb3741f.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.29db7785.min.js' | url }}"></script>
|
||||||
{% for path in config["extra_javascript"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -90,6 +90,9 @@
|
|||||||
--md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);
|
--md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);
|
||||||
--md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);
|
--md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);
|
||||||
|
|
||||||
|
// Typeset `table` color shades
|
||||||
|
--md-typeset-table-color: hsla(0, 0%, 0%, 0.12);
|
||||||
|
|
||||||
// Admonition color shades
|
// Admonition color shades
|
||||||
--md-admonition-fg-color: var(--md-default-fg-color);
|
--md-admonition-fg-color: var(--md-default-fg-color);
|
||||||
--md-admonition-bg-color: var(--md-default-bg-color);
|
--md-admonition-bg-color: var(--md-default-bg-color);
|
||||||
|
@ -57,8 +57,9 @@ kbd {
|
|||||||
|
|
||||||
// Icon definitions
|
// Icon definitions
|
||||||
:root {
|
:root {
|
||||||
--md-typeset-table--ascending: svg-load("material/arrow-down.svg");
|
--md-typeset-table-sort-icon: svg-load("material/sort.svg");
|
||||||
--md-typeset-table--descending: svg-load("material/arrow-up.svg");
|
--md-typeset-table-sort-icon--asc: svg-load("material/sort-ascending.svg");
|
||||||
|
--md-typeset-table-sort-icon--desc: svg-load("material/sort-descending.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -496,10 +497,8 @@ kbd {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
font-size: px2rem(12.8px);
|
font-size: px2rem(12.8px);
|
||||||
background-color: var(--md-default-bg-color);
|
background-color: var(--md-default-bg-color);
|
||||||
border-radius: px2rem(2px);
|
border: px2rem(1px) solid var(--md-typeset-table-color);
|
||||||
box-shadow:
|
border-radius: px2rem(4px);
|
||||||
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),
|
|
||||||
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);
|
|
||||||
touch-action: auto;
|
touch-action: auto;
|
||||||
|
|
||||||
// [print]: Reset display mode so table header wraps when printing
|
// [print]: Reset display mode so table header wraps when printing
|
||||||
@ -544,9 +543,8 @@ kbd {
|
|||||||
th {
|
th {
|
||||||
min-width: px2rem(100px);
|
min-width: px2rem(100px);
|
||||||
padding: px2em(12px, 12.8px) px2em(16px, 12.8px);
|
padding: px2em(12px, 12.8px) px2em(16px, 12.8px);
|
||||||
color: var(--md-default-bg-color);
|
font-weight: 700;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
background-color: var(--md-default-fg-color--light);
|
|
||||||
|
|
||||||
// Links in table headings
|
// Links in table headings
|
||||||
a {
|
a {
|
||||||
@ -558,11 +556,11 @@ kbd {
|
|||||||
td {
|
td {
|
||||||
padding: px2em(12px, 12.8px) px2em(16px, 12.8px);
|
padding: px2em(12px, 12.8px) px2em(16px, 12.8px);
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-top: px2rem(1px) solid var(--md-default-fg-color--lightest);
|
border-top: px2rem(1px) solid var(--md-typeset-table-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Table row
|
// Table body row
|
||||||
tr {
|
tbody tr {
|
||||||
transition: background-color 125ms;
|
transition: background-color 125ms;
|
||||||
|
|
||||||
// Table row on hover
|
// Table row on hover
|
||||||
@ -570,11 +568,6 @@ kbd {
|
|||||||
background-color: rgba(0, 0, 0, 0.035);
|
background-color: rgba(0, 0, 0, 0.035);
|
||||||
box-shadow: 0 px2rem(1px) 0 var(--md-default-bg-color) inset;
|
box-shadow: 0 px2rem(1px) 0 var(--md-default-bg-color) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide border on first table row
|
|
||||||
&:first-child td {
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Text link in table
|
// Text link in table
|
||||||
@ -594,21 +587,28 @@ kbd {
|
|||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
vertical-align: sub;
|
vertical-align: sub;
|
||||||
|
mask-image: var(--md-typeset-table-sort-icon);
|
||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-size: contain;
|
mask-size: contain;
|
||||||
|
transition: background-color 125ms;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort ascending
|
||||||
|
&:hover::after {
|
||||||
|
background-color: var(--md-default-fg-color--lighter);
|
||||||
|
}
|
||||||
|
|
||||||
// Sort ascending
|
// Sort ascending
|
||||||
&[aria-sort="ascending"]::after {
|
&[aria-sort="ascending"]::after {
|
||||||
background-color: currentColor;
|
background-color: var(--md-default-fg-color--light);
|
||||||
mask-image: var(--md-typeset-table--ascending);
|
mask-image: var(--md-typeset-table-sort-icon--asc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort descending
|
// Sort descending
|
||||||
&[aria-sort="descending"]::after {
|
&[aria-sort="descending"]::after {
|
||||||
background-color: currentColor;
|
background-color: var(--md-default-fg-color--light);
|
||||||
mask-image: var(--md-typeset-table--descending);
|
mask-image: var(--md-typeset-table-sort-icon--desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user