Tweaking mobile styles

This commit is contained in:
Shan Carter
2017-10-24 10:57:05 -07:00
parent a43db020b1
commit 33714c9ca4
9 changed files with 88 additions and 56 deletions
-1
View File
@@ -1,6 +1,5 @@
import { Template } from '../mixins/template';
import { Controller } from '../controller';
import style from '../styles/d-article.css';
const isOnlyWhitespace = /^\s*$/;
+2 -49
View File
@@ -1,50 +1,3 @@
import { Template } from '../mixins/template';
const T = Template('d-title', `
<style>
:host {
padding: 4rem 0 1.5rem;
contain: content;
display: block;
}
::slotted(h1) {
grid-column: text;
font-size: 60px;
font-weight: 700;
line-height: 1.05em;
margin: 0 0 1rem;
}
::slotted(p) {
font-weight: 300;
font-size: 1.5rem;
line-height: 1.2em;
grid-column: text;
}
.status {
margin-top: 0px;
font-size: 12px;
color: #009688;
opacity: 0.8;
grid-column: kicker;
}
.status span {
line-height: 1;
display: inline-block;
padding: 6px 0;
border-bottom: 1px solid #80cbc4;
font-size: 11px;
text-transform: uppercase;
}
</style>
<!-- <div class="status"><span>✓ Peer Reviewed</span></div> -->
<slot></slot>
`);
export class Title extends T(HTMLElement) {
export class Title extends HTMLElement {
static get is() { return 'd-title'; }
}