2016-09-04 17:11:58 +02:00
|
|
|
////
|
|
|
|
/// 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
|
|
|
// ----------------------------------------------------------------------------
|
2016-10-06 12:14:33 +02:00
|
|
|
// Rules
|
2016-09-04 17:32:12 +02:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
@include break-to-device(tablet portrait) {
|
|
|
|
.md-search-result__link {
|
|
|
|
padding: 0 1.6rem;
|
|
|
|
}
|
|
|
|
.md-search-result__meta {
|
|
|
|
padding-left: 1.6rem;
|
2016-09-30 13:29:45 +02:00
|
|
|
}
|
2016-10-23 10:21:37 +02:00
|
|
|
}
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
.md-search-result {
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
&__meta {
|
2016-10-30 10:36:18 +01:00
|
|
|
background: $md-color-black--lightest;
|
2016-10-23 10:21:37 +02:00
|
|
|
color: $md-color-black--light;
|
|
|
|
padding-left: 4.8rem;
|
|
|
|
padding-right: 1.6rem;
|
|
|
|
line-height: 4.0rem;
|
|
|
|
font-size: ms(-1);
|
|
|
|
}
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-30 10:36:18 +01:00
|
|
|
&__item {
|
|
|
|
|
|
|
|
box-shadow: 0 -0.1rem 0 rgba(0, 0, 0, 0.07);
|
|
|
|
}
|
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
&__list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
border-top: 0.1rem solid $md-color-black--lightest;
|
|
|
|
}
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
&__link {
|
2016-10-30 10:36:18 +01:00
|
|
|
overflow: auto; // TODO: this must be here, because the inner margins may not collapse...
|
2016-10-23 10:21:37 +02:00
|
|
|
display: block;
|
|
|
|
padding-left: 4.8rem;
|
|
|
|
padding-right: 1.6rem;
|
|
|
|
transition: background 0.25s;
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
&:hover {
|
|
|
|
background: transparentize($md-color-accent, 0.9);
|
2016-09-30 13:29:45 +02:00
|
|
|
}
|
2016-10-23 10:21:37 +02:00
|
|
|
}
|
2016-09-02 00:33:45 +02:00
|
|
|
|
2016-10-30 10:36:18 +01:00
|
|
|
&__article {
|
|
|
|
margin: 1.0em 0;
|
|
|
|
}
|
|
|
|
|
2016-10-23 10:21:37 +02:00
|
|
|
&__title {
|
|
|
|
color: $md-color-black;
|
|
|
|
font-size: ms(0);
|
2016-10-30 10:36:18 +01:00
|
|
|
font-weight: 400;
|
2016-10-23 10:21:37 +02:00
|
|
|
line-height: 1.4;
|
|
|
|
margin-top: 0.5em;
|
2016-10-30 10:36:18 +01:00
|
|
|
margin-bottom: 0;
|
2016-10-23 10:21:37 +02:00
|
|
|
}
|
2016-09-30 13:29:45 +02:00
|
|
|
|
2016-10-30 10:36:18 +01:00
|
|
|
&__teaser {
|
2016-10-23 10:21:37 +02:00
|
|
|
color: $md-color-black--light;
|
|
|
|
font-size: ms(-1);
|
|
|
|
line-height: 1.4;
|
|
|
|
margin: 0.5em 0;;
|
2016-10-30 10:36:18 +01:00
|
|
|
word-break: break-word;
|
2016-09-02 00:33:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-13 20:58:28 +02:00
|
|
|
.md-button {
|
2016-09-11 19:00:53 +02:00
|
|
|
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;
|
2016-09-11 19:00:53 +02:00
|
|
|
}
|