git ssb

16+

Dominic / patchbay



Commit c7e6d29b42d5c8650b1fdc63b08926ade061eb38

remove opinionation from stylesheet

Ev Bogue committed on 8/4/2016, 5:18:50 PM
Parent: f620b921a2133b93e775316a92ac76a61ba55798

Files changed

style.csschanged
style.cssView
@@ -1,10 +1,4 @@
1-body {
2- font-family: "Source Sans Pro", sans-serif;
3-}
4-
5-p { margin-top: .35ex;}
6-
71 .screen {
82 position: absolute;
93 top: 0px; bottom: 0px;
104 left: 0px; right: 0px;
@@ -13,159 +7,123 @@
137
148 .column {
159 display: flex;
1610 flex-direction: column;
17- background: #f5f5f5;
1811 min-height: 0px;
1912 }
2013
2114 .row {
2215 display: flex;
2316 flex-direction: row;
2417 }
2518
26-.wrap {
27- display: flex;
28- flex-direction: row;
29- flex-wrap: wrap;
30-}
31-
32-.stretch {
33- flex-basis: 0;
34-}
35-
36-.fixed {
37- flex-grow: 1;
38- flex-shrink: 1;
39-}
40-
4119 .scroll-y {
4220 overflow-y: auto;
4321 }
4422
4523 .scroll-x {
4624 overflow-x: auto;
4725 }
4826
49-.button {
50- border: 2px; margin: 3px;
51- max-width: 50px;
52- overflow-x: hidden;
53-}
54-
55-
56-.message img {
27+pre {
5728 max-width: 100%;
58- display: block;
29+ white-space: pre-wrap;
5930 }
6031
61-pre {
62- max-width: 650px;
63- white-space: pre-wrap;
32+p {
33+ margin-top: .35ex;
6434 }
6535
6636 /* scrolling feeds, threads */
6737
6838 .scroller {
39+ max-width: 600px;
6940 width: 100%;
7041 }
7142
72-.scroller > * {
43+.scroller {
7344 margin-left: auto;
7445 margin-right: auto;
7546 }
7647
7748 .scroller__wrapper {
78- width: 100%;
49+ flex: 1;
7950 }
8051
81-@media (min-width: 600px) {
82- .scroller__wrapper {
83- width: 600px;
84- }
85-}
86-
8752 /* --- hypertabs ------- */
8853
8954 .hypertabs__tabs {
9055 overflow-y: hide;
9156 }
9257
9358 .hypertabs > .row {
94- flex-grow: 0; flex-shrink: 0;
95- margin: 10px;
59+ flex-grow: 0;
60+ flex-shrink: 0;
61+ margin: .5ex;
9662 }
9763
9864 .hypertabs__tabs > * {
99- max-width: 50px;
65+ max-width: 3em;
10066 overflow-x: hidden;
101- margin-right: 5px;
102- padding-top: 1px;
67+ margin-right: .5ex;
68+ padding-top: .1ex;
10369 }
10470
10571 .hypertabs--selected {
106- background: white;
107- border: 1px solid #ccc;
72+ max-width: 3em;
73+ background: yellow;
10874 padding-top: 0;
109- padding-left: 5px;
110- padding-right: 5px;
111- max-width: 200px;
75+ padding-left: .5ex;
76+ padding-right: .5ex;
11277 }
11378
114-/* message id */
115-
116-input {
117- margin-left: 3px;
118- margin-right: 3px;
119- border: 1px solid #eee;
120-}
121-
122-textarea {
123- border: 1px solid #eee;
124-}
125-
12679 /* compose */
12780
12881 .compose {
129- width: 100%;
82+ width: 99%;
13083 }
13184
13285 /* messages */
13386
13487 .message {
135- border: 1px solid #eee;
136- padding: 7px;
137- margin-top: .5em;
138- background: white;
13988 display: block;
14089 flex-basis: 0;
141- max-width: 100%;
142- min-width: 300px;
143- word-wrap:break-word;
144- display:inline-block;
90+ word-wrap: break-word;
91+ display: inline-block;
92+ border: 1px solid #eee;
14593 }
14694
14795 .message_meta input {
148- border: none;
14996 font-size: .8em;
150- color: #666;
151- background: #ddd;
15297 }
15398
15499 .message_meta {
155100 margin-left: auto;
156101 }
102+
157103 .message_meta > * {
158- margin-left: 5px;
104+ margin-left: .5ex;
159105 }
106+
160107 .message_actions {
161108 float: right;
109+ margin-right: .5ex;
110+ margin-bottom: .5ex;
162111 }
163112
113+.title {
114+ padding: .5ex;
115+}
116+
117+.message img {
118+ max-width: 100%;
119+}
120+
164121 .actions > * {
165122 padding-left: 5px;
166123 margin-left: 1px;
167124 }
125+
168126 .actions > :not(:last-child) {
169127 border-right: 2px solid #eee;
170128 padding-right: 5px;
171129 }
@@ -174,138 +132,87 @@
174132 margin-left: 0;
175133 }
176134
177135 .message_content {
178- margin-top: 5px;
179- border-top: 1px solid #eee;
180- padding-top: 3px;
136+ padding: .5ex;
181137 }
182138
183139 /* -- suggest box */
184140
185-
186141 .suggest-box > * {
187- background: #f5f5f5;
188- border: 1px solid #ccc;
189- margin: 3px;
142+ margin: .5ex;
190143 }
191144
192145 .suggest-box {
193- width: 200px;
146+ width: 5em;
194147 }
195148
196149 .suggest-box ul {
197150 list-style-type: none;
198- padding-left: -20px;
151+ padding-left: -2em;
199152 }
200153
201154 .suggest-box .selected {
202- background: #ccc;
155+ background: yellow;
203156 }
204157
205-.suggest-box img {
206- width: 40px;
207-}
208-.suggest-box,.selected img {
209- width: 200px;
210-}
211158 /* avatar */
212159
213160 .avatar {
214161 display: flex;
215162 flex-direction: row;
216163 }
217164
218165 .avatar--large {
219- width: 256px;
220- height: 256px;
221- border: 1px solid #eee;
166+ width: 10em;
167+ height: 10em;
222168 }
223169
224170 .avatar--thumbnail {
225- width: 40px;
226- height: 40px;
227- margin-right: 3px;
228- border: 1px solid #ccc;
171+ width: 2.5em;
172+ height: 2.5em;
173+ margin-right: .5ex;
229174 }
230175
231176 .avatar--fullsize {
232177 width: 100%;
233178 }
234179
235180 .profile {
236- background: #fff;
237- padding: .5em;
238- border: 1px solid #eee;
181+ padding: .5ex;
182+ overflow: auto;
239183 }
240184
185+.profile input {
186+ width: 100%;
187+}
188+
241189 .profile__info {
242190 margin-left: .5em;
243191 }
244192
245193 /* lightbox - used in message-confirm */
246194
247-.lightbox__content {
195+.lightbox {
248196 overflow: auto;
249- background: #fff;
250- width: 100%;
251- margin-left: auto;
252- margin-right: auto;
253- border: 1px solid #eee;
254- top: 2em;
255- bottom: 2em;
256- left: 2em;
257- right: 2em;
258197 padding: 1em;
198+ background: white;
259199 }
260200
261-@media (min-width: 600px) {
262- .lightbox__content {
263- width: 600px;
264- }
265-}
266-
267-.message-confirm {
268- background: #fff;
269-}
270-
271201 /* searchprompt */
272202
273203 .searchprompt {
274- width: 250px;
275- margin-left: 10px;
276- margin-bottom: 5px;
204+ width: 17em;
205+ margin-left: .5ex;
206+ margin-bottom: .5ex;
277207 }
278208
279-a {
280- color: #333;
281-}
282-
283-a:hover {
284- color: #000;
285-}
286-
287209 /* TextNodeSearcher highlights */
288210
289-highlight {
211+.highlight {
290212 background: yellow;
291213 }
292214
293-/* --- network status --- */
294-
295-.status {
296- width: 20px;
297- height: 20px;
298- position: fixed;
299- right: 10px;
300- top: 10px;
301- background: green;
302-}
303-
304-.error {
305- background: red;
306-}
307-
308215 /* avatar editor */
309216
310217 .hypercrop__canvas {
311218 width: 100%;
@@ -323,11 +230,27 @@
323230 .git-table-wrapper table {
324231 width: 100%;
325232 }
326233
234+/* --- network status --- */
235+
236+.status {
237+ width: 1em;
238+ height: 1em;
239+ position: fixed;
240+ right: .5em;
241+ top: .5em;
242+ border-radius: 100%;
243+ background: green;
244+}
245+
246+.error {
247+ background: red;
248+}
249+
250+
327251 /* invite codes */
328252
329253 .hyperprogress__liquid {
330- height: 1px;
254+ height: 1ex;
331255 background: blue;
332256 }
333-

Built with git-ssb-web