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

101 lines
2.6 KiB
SCSS

////
/// 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
////
// ----------------------------------------------------------------------------
// Rules
// ----------------------------------------------------------------------------
@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;
}
}
.md-button {
float: right;
margin-top: 9px;
font-size: 13px;
padding-left: 2.6rem;
font-weight: 700;
text-transform: uppercase;
}