git ssb

10+

Matt McKegg / patchwork



Commit 97eb7a8fb592282786cdf7a1591db859bf7e6cc8

New back button icon and minor header style tweaks

Oli Evans committed on 4/22/2017, 8:12:48 PM
Parent: e0a3d8fc98c17511ce174fb697bb8c117b8de5e1

Files changed

main-window.jschanged
styles/base.mcsschanged
styles/main-window.mcsschanged
main-window.jsView
@@ -58,13 +58,13 @@
5858 h('span.history', [
5959 h('a', {
6060 'ev-click': views.goBack,
6161 classList: [ when(views.canGoBack, '-active') ]
62- }, '<'),
62 + }),
6363 h('a', {
6464 'ev-click': views.goForward,
6565 classList: [ when(views.canGoForward, '-active') ]
66- }, '>')
66 + })
6767 ]),
6868 h('span.nav', [
6969 tab('Public', '/public'),
7070 tab('Private', '/private')
styles/base.mcssView
@@ -1,8 +1,8 @@
11 html, body {
22 background: #f5f5f5
33 margin: 0
4- font-family: caption, sans-serif
4 + font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif
55 overflow: hidden
66 height: 100%
77 font-size: 12px
88 -webkit-user-select: none
@@ -66,8 +66,22 @@
6666 color: #FFF
6767 padding-right: 12px
6868 border-radius: 0
6969 }
70 + [type='search'] {
71 + padding: 4px 8px;
72 + border-radius: 3px;
73 + border: 0 none;
74 + background: #ffffff;
75 + color: #656565;
76 + font-size: 120%;
77 + width: 180px;
78 + box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.1)
79 + :focus {
80 + outline: 0;
81 + box-shadow: inset 0 0 0px 1px #286bc3
82 + }
83 + }
7084 }
7185
7286 ::-webkit-file-upload-button {
7387 font-family: inherit
styles/main-window.mcssView
@@ -10,48 +10,82 @@
1010 }
1111
1212 div.top {
1313 display: flex;
14 + align-items: center;
1415 background: #fff;
15- padding: 10px;
16 + padding: 6px;
1617 border-bottom: 2px solid #e4edff;
1718 box-shadow: 0 0 3px #7f7f7f;
1819 position: relative;
1920 z-index: 100
2021
21- span {
22 + span.history {
23 + padding-left: 6px
24 + height: 26px;
25 + display: inline-block
26 + a {
27 + cursor: pointer;
28 + text-decoration: none !important
29 + display: inline-block
30 + width: 28px
31 + height: 100%
32 + border-radius: 2px
33 + background: svg(backArrow) no-repeat center
34 + opacity: 0.4
35 + -active {
36 + opacity: 1
37 + }
38 + :hover {
39 + background-color: #E8E8E8
40 + }
41 + }
2242
23- input.search {
24- padding: 2px 4px;
25- border: 01px solid #c7c6c6;
26- border-radius: 4px;
27- background: #ffffff;
28- color: #656565;
29- font-size: 120%;
30- margin-top: -3px;
31- width: 180px;
43 + a + a {
44 + transform: rotate(180deg)
3245 }
3346
47 + @svg backArrow {
48 + width: 14px
49 + height: 14px
50 + content: '<g stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M1.5 7h11M7 13L1 7l6-6"/></g>'
51 +
52 + path {
53 + stroke: #979797
54 + }
55 +
56 + -active {
57 + path {
58 + fill: #DDD
59 + }
60 + }
61 + }
62 + }
63 +
64 + span.nav {
65 + display: inline-block
3466 a {
35- padding: 2px 8px;
36- border: 2px solid #c7c6c6;
37- border-radius: 4px;
38- background: #dedede;
67 + padding: 4px 10px;
68 + border-radius: 3px;
69 + background: #f3f3f3;
3970 color: #656565;
4071 font-size: 120%;
72 + font-weight: 200;
4173 cursor: pointer;
42- margin-left: 5px;
74 + margin-left: 8px;
4375 text-decoration: none !important
4476
4577 :hover {
4678 color: black
47- border-color: #888
79 + background: #E8E8E8
4880 }
4981
5082 -selected {
51- border-color: #444
52- background: #CCC
83 + background: #d2d2d2
5384 color: black
85 + :hover {
86 + background: #d2d2d2
87 + }
5488 }
5589
5690 -add {
5791 border-color: #498849
@@ -70,30 +104,15 @@
70104 }
71105 }
72106 }
73107
74- span.history {
75- a {
76- opacity: 0.3
77-
78- -active {
79- opacity: 1
80- }
81- }
82-
83- a + a {
84- margin-left: 0
85- }
86- }
87-
88108 span.appTitle {
89109 flex: 1;
90110 text-align: center;
91- font-size: 130%;
111 + font-size: 20px;
92112 color: #757575;
93- letter-spacing: 0.1em;
94- font-weight: bold;
95- font-weight: normal;
113 + letter-spacing: 1px;
114 + font-weight: 200;
96115 -webkit-app-region: drag;
97116 }
98117 }
99118

Built with git-ssb-web