Skip to content

Commit

Permalink
Merge pull request #77 from BrightspaceUI/dbatiste/remove-root-selector
Browse files Browse the repository at this point in the history
Dbatiste/remove root selector
  • Loading branch information
dbatiste authored Nov 29, 2016
2 parents 398b5da + 1b19690 commit 035067b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion d2l-typography-shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<dom-module id="d2l-typography-shared-styles">
<template>
<style>
:root {
:host {
--d2l-body-standard-text: {
font-size: 0.95rem;
font-weight: 400;
Expand Down
20 changes: 14 additions & 6 deletions d2l-typography.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../d2l-colors/d2l-colors.html">
<link rel="import" href="d2l-typography-shared-styles.html">
<link href="https://s.brightspace.com/lib/fonts/0.3.0/fonts.css" rel="stylesheet">
<dom-module id="d2l-typography">
<template>
<style include="d2l-colors d2l-typography-shared-styles">
<style include="d2l-colors">

.d2l-typography,
.vui-typography {
color: var(--d2l-color-ferrite);
display: block;
font-family: 'Lato', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
letter-spacing: 0.01rem;
@apply(--d2l-body-standard-text);
font-size: 0.95rem;
font-weight: 400;
line-height: 1.4rem;
@apply(--d2l-font-custom);
}

.d2l-typography .d2l-body-standard {
@apply(--d2l-body-standard-text);
font-size: 0.95rem;
font-weight: 400;
line-height: 1.4rem;
}

.d2l-typography .d2l-body-compact {
@apply(--d2l-body-compact-text);
font-size: 0.8rem;
font-weight: 400;
line-height: 1.2rem;
}

.d2l-typography .d2l-body-small {
@apply(--d2l-body-small-text);
font-size: 0.7rem;
font-weight: 400;
line-height: 1.05rem;
margin: auto;
}

.d2l-typography p,
Expand Down

0 comments on commit 035067b

Please sign in to comment.