Link best practices, and removed font for faster loading time
This commit is contained in:
		
							parent
							
								
									705e35e971
								
							
						
					
					
						commit
						cc6519c302
					
				| @ -54,6 +54,7 @@ Element makeShareLink(Element icon, String url) { | |||||||
|     ..append(Element.a() |     ..append(Element.a() | ||||||
|       ..attributes['href'] = url |       ..attributes['href'] = url | ||||||
|       ..attributes['target'] = '_blank' |       ..attributes['target'] = '_blank' | ||||||
|  |       ..attributes['rel'] = 'noreferrer' | ||||||
|       ..append(icon)); |       ..append(icon)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -2,7 +2,8 @@ import 'dart:html'; | |||||||
| 
 | 
 | ||||||
| import './navbar.dart' show makeNavbar; | import './navbar.dart' show makeNavbar; | ||||||
| 
 | 
 | ||||||
| const image_header = 'https://cdn.phundrak.com/img/mahakala-monochrome.png'; | const image_header = | ||||||
|  |     'https://phundrak.fra1.cdn.digitaloceanspaces.com/img/mahakala-monochrome.png'; | ||||||
| 
 | 
 | ||||||
| Future<Element> makeHeader() async { | Future<Element> makeHeader() async { | ||||||
|   var header = Element.tag('header'); |   var header = Element.tag('header'); | ||||||
|  | |||||||
| @ -1,10 +1,3 @@ | |||||||
| @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700); |  | ||||||
| @font-face { |  | ||||||
|     font-family: "DoulosSIL"; |  | ||||||
|     font-display: swap; |  | ||||||
|     src: url("/fonts/DoulosSIL-R.woff"); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /* Variables *****************************************************************/ | /* Variables *****************************************************************/ | ||||||
| 
 | 
 | ||||||
| $switch-small-screen: "only screen and (max-width: 600px)"; | $switch-small-screen: "only screen and (max-width: 600px)"; | ||||||
| @ -267,7 +260,7 @@ $gradient-accent3-light-right: linear-gradient(to right, $light,  $accent3); | |||||||
| body { | body { | ||||||
|     margin: 0; |     margin: 0; | ||||||
|     padding: 0; |     padding: 0; | ||||||
|     font-family: "DoulosSIL", "Lato", "proxima-nova", Arial, sans-serif; |     font-family: "Lato", "proxima-nova", Arial, sans-serif; | ||||||
|     font-size: 1.2em; |     font-size: 1.2em; | ||||||
| 
 | 
 | ||||||
|     transition: background 500ms ease-in-out, color 1s ease-in-out; |     transition: background 500ms ease-in-out, color 1s ease-in-out; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user