Commit 59dd32b5a83df3b3e243a5bc34f33072e25a9701
minor style fixes (closes issues)
mix irving committed on 6/27/2018, 3:57:19 AMParent: cf8af24cc3bd046044a71f2ddf22530d636cf8b0
Files changed
app/page/splash.js | changed |
app/page/splash.mcss | changed |
app/page/statsShow.mcss | changed |
app/page/splash.js | ||
---|---|---|
@@ -15,10 +15,8 @@ | ||
15 | 15 | // location is an object { feed, page: 'splash', callback } |
16 | 16 | |
17 | 17 | const strings = api.translations.sync.strings() |
18 | 18 | |
19 | - const svg = assetPath('splash.svg') | |
20 | - | |
21 | 19 | const style = { |
22 | 20 | 'background': require('../../assets/splash-svg.js'), |
23 | 21 | 'background-repeat': 'no-repeat', |
24 | 22 | 'background-size': 'contain' |
@@ -28,9 +26,9 @@ | ||
28 | 26 | h('div.top', [ |
29 | 27 | h('img.logoName', { src: assetPath('logo_and_name.png') }) |
30 | 28 | ]), |
31 | 29 | h('div.bottom', { style }, [ |
32 | - h('pre.slogan', strings.splash.slogan), | |
30 | + h('div.slogan', strings.splash.slogan), | |
33 | 31 | h('div.about', random(strings.splash.about)) |
34 | 32 | ]) |
35 | 33 | ]) |
36 | 34 | } |
@@ -43,5 +41,4 @@ | ||
43 | 41 | function random (arr) { |
44 | 42 | const i = Math.floor(Math.random() * arr.length) |
45 | 43 | return arr[i] |
46 | 44 | } |
47 | - |
app/page/splash.mcss | ||
---|---|---|
@@ -28,25 +28,23 @@ | ||
28 | 28 | display: flex |
29 | 29 | flex-direction: column |
30 | 30 | align-items: center |
31 | 31 | |
32 | + div.slogan { | |
33 | + color: #2f5ea1 | |
34 | + font-size: 2.5rem | |
35 | + font-family: cursive, serif | |
36 | + font-style: italic | |
37 | + line-height: 1.2 | |
38 | + margin-bottom: 2vw | |
39 | + } | |
32 | 40 | |
33 | 41 | div.about { |
34 | 42 | color: #666 |
35 | 43 | font-size: 1.5rem |
36 | 44 | line-height: 1.5 |
37 | 45 | |
38 | - max-width: 40vw | |
39 | - margin-bottom: 2vw | |
46 | + max-width: 60vw | |
40 | 47 | } |
41 | - | |
42 | - pre.slogan { | |
43 | - color: #2f5ea1 | |
44 | - font-size: 2.5rem | |
45 | - font-family: cursive, serif | |
46 | - font-style: italic | |
47 | - line-height: 1.2 | |
48 | - } | |
49 | - | |
50 | 48 | } |
51 | 49 | } |
52 | 50 |
Built with git-ssb-web