git ssb

16+

Dominic / patchbay



Commit f09fd788e61378d47dac27b0766e6ecc1ad51ffb

trim old styles woop!

mix irving committed on 1/4/2017, 9:49:16 PM
Parent: f3abfca785a8f7b93cc0240027581e4dbe4385d9

Files changed

modules_basic/message-author.mcsschanged
modules_basic/message.mcsschanged
modules_basic/timestamp.mcsschanged
modules_core/index.jschanged
modules_core/message-confirm.jschanged
modules_core/message-confirm.mcsschanged
modules_core/style-mixins.jschanged
style.csschanged
modules_basic/message-author.mcssView
@@ -2,19 +2,19 @@
22 display: flex
33 flex-direction: column
44
55 section {
6- -image {
6 + -image {
77 margin-bottom: .3rem
88 }
99
1010 -name {
1111 max-width: 7rem
12- a { $text-primary }
12 + a { $textPrimary }
1313 }
1414
1515 -timestamp {
16-
16 +
1717 }
1818 }
1919
2020 -mini {
modules_basic/message.mcssView
@@ -7,9 +7,9 @@
77 display: flex
88 flex-direction: row
99 flex-wrap: wrap
1010 justify-content: flex-end
11-
11 +
1212 header.author {
1313 position: absolute
1414 left: .5rem
1515 }
@@ -20,11 +20,11 @@
2020 }
2121
2222 section.meta {
2323 display: flex
24- a {
24 + a {
2525 margin-left: .2rem
26- $text-subtle
26 + $textSubtle
2727 }
2828
2929 input{
3030 margin-right: 0
modules_basic/timestamp.mcssView
@@ -1,7 +1,7 @@
11 Timestamp {
22 a {
3- $text-subtle
3 + $textSubtle
44 font-size: .8rem
55 }
66 }
77
modules_core/index.jsView
@@ -7,8 +7,8 @@
77 "menu.js": require('./menu.js'),
88 "message-confirm.js": require('./message-confirm.js'),
99 "tabs.js": require('./tabs.js'),
1010 "sbot.js": require('./sbot.js'),
11- "style-mixins.js": require('./style-mixins.js'),
12- "styles.js": require('./styles.js')
11 + "styles.js": require('./styles.js'),
12 + "style-mixins.js": require('./style-mixins.js')
1313 }
1414
modules_core/message-confirm.jsView
@@ -1,12 +1,12 @@
1-const fs = require('fs')
2-const lightbox = require('hyperlightbox')
3-const h = require('../h')
4-const u = require('../util')
5-const self_id = require('../keys').id
1 +var fs = require('fs')
2 +var lightbox = require('hyperlightbox')
3 +var h = require('../h')
4 +var u = require('../util')
5 +var self_id = require('../keys').id
66 //publish or add
77
8-const plugs = require('../plugs')
8 +var plugs = require('../plugs')
99
1010 exports.needs = {
1111 publish: 'first',
1212 message_render: 'first',
modules_core/message-confirm.mcssView
@@ -5,25 +5,27 @@
55
66 -message_preview {
77 background-color: white
88
9- div {
9 + div {
1010 border: none
11- header.author {
11 +
12 + header.author {
1213 div {
1314 section {
1415 -timestamp {
1516 display: none
1617 }
1718 }
1819 }
1920 }
20- section.action {
21 +
22 + section.action {
2123 display: none
2224 }
2325 }
2426 }
25-
27 +
2628 -actions {
2729 margin-top: 1rem
2830 display: flex
2931 justify-content: flex-end
@@ -31,6 +33,7 @@
3133 button {
3234 margin: 0 0 0 1rem
3335 }
3436 }
37 + }
3538 }
3639
modules_core/style-mixins.jsView
@@ -1,11 +1,11 @@
11
22 const mixins = `
3- $text-primary {
3 + $textPrimary {
44 color: black
55 }
66
7- $text-subtle {
7 + $textSubtle {
88 color: gray
99 }
1010 `
1111
style.cssView
@@ -101,9 +101,9 @@
101101 border-radius: .2em;
102102 font-family: sans-serif;
103103 }
104104
105-input:focus, .compose:focus, .message:focus, button:focus {
105 +input:focus, .compose:focus, button:focus {
106106 outline: none;
107107 border-color: #0088cc;
108108 box-shadow: 0 0 4px #0088cc;
109109 }
@@ -176,86 +176,14 @@
176176 float: right;
177177 }
178178
179179 /* messages */
180-/*to be deprecated once message preview is converted to modular style*/
180 +/* is .title used any more? */
181181
182-.message {
183- position: relative;
184- flex-basis: 0;
185- margin-top: .25em;
186- margin-bottom: .25em;
187- padding: .2em;
188- border-top: 1px solid #f5f5f5;
189- // border-bottom: 1px solid #f5f5f5;
190- background: white;
191-}
192-
193-.message:hover {
194- background: #f9f9f9;
195-}
196-
197-
198-.message_content div > span {
199- font-size: 0.9em;
200- margin-bottom: 0.7em;
201- display: block;
202- color: #888;
203-}
204-
205-.message_content--mini div > span {
206- display: inline-block;
207-}
208-
209-.message_content div > span a {
210- color: #005d8c;
211-}
212-
213-.message_meta input {
214- font-size: .8em;
215-}
216-
217-.message_meta {
218- margin-left: auto;
219-}
220-
221-.message_meta > * {
222- margin-left: .5ex;
223-}
224-
225-.message_actions {
226- position: absolute;
227- bottom: 0; right: 0;
228- margin-right: .5ex;
229- margin-bottom: .5ex;
230-}
231-
232182 .title {
233183 padding: .5ex;
234184 }
235185
236-.message img {
237- max-width: 100%;
238-}
239-
240-.message > .title > .avatar {
241- margin-left: 0;
242-}
243-
244-.message_content {
245- padding: .5ex;
246-}
247-
248-.actions > * {
249- padding-left: 5px;
250- margin-left: 1px;
251-}
252-
253-.actions > :not(:last-child) {
254- border-right: 2px solid #eee;
255- padding-right: 5px;
256-}
257-
258186 .emoji {
259187 height: 1em;
260188 width: 1em;
261189 vertical-align: top;

Built with git-ssb-web