1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-23 12:54:53 +01:00
mkdocs-material/src/assets/stylesheets/_shame.scss

101 lines
2.6 KiB
SCSS
Raw Normal View History

////
/// Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com>
///
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy of this software and associated documentation files (the "Software"),
/// to deal in the Software without restriction, including without limitation
/// the rights to use, copy, modify, merge, publish, distribute, sublicense,
/// and/or sell copies of the Software, and to permit persons to whom the
/// Software is furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
/// DEALINGS
////
2016-01-28 23:27:15 +01:00
2016-09-04 17:32:12 +02:00
// ----------------------------------------------------------------------------
// Rules
2016-09-04 17:32:12 +02:00
// ----------------------------------------------------------------------------
@include break-to-device(tablet portrait) {
.md-search-result__link {
padding: 0 1.6rem;
}
.md-search-result__meta {
padding-left: 1.6rem;
}
}
.md-search-result {
&__meta {
background: $md-color-black--lightest;
color: $md-color-black--light;
padding-left: 4.8rem;
padding-right: 1.6rem;
line-height: 4.0rem;
font-size: ms(-1);
}
&__item {
box-shadow: 0 -0.1rem 0 rgba(0, 0, 0, 0.07);
}
&__list {
margin: 0;
padding: 0;
list-style-type: none;
border-top: 0.1rem solid $md-color-black--lightest;
}
&__link {
overflow: auto; // TODO: this must be here, because the inner margins may not collapse...
display: block;
padding-left: 4.8rem;
padding-right: 1.6rem;
transition: background 0.25s;
&:hover {
background: transparentize($md-color-accent, 0.9);
}
}
&__article {
margin: 1.0em 0;
}
&__title {
color: $md-color-black;
font-size: ms(0);
font-weight: 400;
line-height: 1.4;
margin-top: 0.5em;
margin-bottom: 0;
}
&__teaser {
color: $md-color-black--light;
font-size: ms(-1);
line-height: 1.4;
margin: 0.5em 0;;
word-break: break-word;
}
}
2016-09-13 20:58:28 +02:00
.md-button {
float: right;
margin-top: 9px;
font-size: 13px;
padding-left: 2.6rem;
2016-09-13 20:58:28 +02:00
font-weight: 700;
text-transform: uppercase;
}