git ssb

16+

Dominic / patchbay



Commit 460e6673a4125705de97be7e0db898635b113fbe

add mixins to styles

mix irving committed on 12/31/2016, 10:32:00 PM
Parent: 34a9a046aafdc75d2175d111e348bca2c5364fb7

Files changed

modules_basic/message-author.mcsschanged
modules_basic/message.mcsschanged
modules_basic/timestamp.mcsschanged
modules_core/index.jschanged
modules_core/style-mixins.jsadded
modules_basic/message-author.mcssView
@@ -8,9 +8,9 @@
88 }
99
1010 -name {
1111 max-width: 7rem
12- a { color: black }
12 + a { $text-primary }
1313 }
1414
1515 -timestamp {
1616
modules_basic/message.mcssView
@@ -24,9 +24,9 @@
2424 section.meta {
2525 display: flex
2626 a {
2727 margin-left: .2rem
28- color: gray
28 + $text-subtle
2929 }
3030
3131 input{
3232 margin-right: 0
modules_basic/timestamp.mcssView
@@ -1,6 +1,7 @@
11 Timestamp {
22 a {
3 + $text-subtle
34 font-size: .8rem
4- color: gray
55 }
66 }
7 +
modules_core/index.jsView
@@ -7,7 +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'),
1112 "styles.js": require('./styles.js')
1213 }
1314
modules_core/style-mixins.jsView
@@ -1,0 +1,22 @@
1 +
2 +const mixins = `
3 + $text-primary {
4 + color: black
5 + }
6 +
7 + $text-subtle {
8 + color: gray
9 + }
10 +`
11 +
12 +module.exports = {
13 + gives: {
14 + mcss: true
15 + },
16 + create: function (api) {
17 + return {
18 + mcss: () => mixins
19 + }
20 + }
21 +}
22 +

Built with git-ssb-web