ducky/web

Paddy 2015-06-30 Parent:99a43a6d1d30

11:3bdc03963abe Go to Latest

ducky/web/src/styles/base/_typography.scss

Implement OAuth token refreshing helper. Create an ampersand-sync/XHR request wrapper that will detect when a request fails because an OAuth2 token has expired, and will try to refresh the token then retry the request.

History
1 body {
2 @include font-feature-settings("kern", "liga", "pnum");
3 -webkit-font-smoothing: antialiased;
4 color: $base-font-color;
5 font-family: $base-font-family;
6 font-size: $base-font-size;
7 line-height: $base-line-height;
8 }
10 h1,
11 h2,
12 h3,
13 h4,
14 h5,
15 h6 {
16 font-family: $heading-font-family;
17 font-size: $base-font-size;
18 line-height: $heading-line-height;
19 margin: 0 0 $small-spacing;
20 }
22 p {
23 margin: 0 0 $small-spacing;
24 }
26 a {
27 color: $action-color;
28 text-decoration: none;
29 transition: color 0.1s linear;
31 &:active,
32 &:focus,
33 &:hover {
34 color: darken($action-color, 15%);
35 }
37 &:active,
38 &:focus {
39 outline: none;
40 }
41 }
43 hr {
44 border-bottom: $base-border;
45 border-left: none;
46 border-right: none;
47 border-top: none;
48 margin: $base-spacing 0;
49 }
51 img,
52 picture {
53 margin: 0;
54 max-width: 100%;
55 }