git ssb

16+

Dominic / patchbay



Commit ee289a19dca6fefc3c9308225b6c429fdeb79ad6

styling refactor: marama mcss, markdown padding, message layout (tweak)

mixmix committed on 9/26/2018, 10:25:17 PM
Parent: 28a3d608c0985435c995a7262ed21dfc3d965caf

Files changed

app/page/thread.mcsschanged
app/styles/mcss/button.mcsschanged
app/styles/mcss/marama.jschanged
app/styles/mcss/markdown.mcsschanged
message/html/layout/default.mcsschanged
app/page/thread.mcssView
@@ -1,7 +1,7 @@
11 Thread {
22 section.top {
3- border-bottom: solid 1px gainsboro
3 + /* border-bottom: solid 1px gainsboro */
44
55 section.recipients {
66 display: flex
77 justify-content: center
app/styles/mcss/button.mcssView
@@ -37,16 +37,14 @@
3737 }
3838
3939 :disabled {
4040 color: grey
41- background: #fff
41 + background: rgba(255,255,255,.3)
42 + cursor: not-allowed
43 + border: none
4244
43- cursor: initial
44-
4545 :hover {
46- color: grey
47- background: #fff
48- border: 1px #b9b9b9 solid
46 + background: rgba(255,0,0,.3)
4947 }
5048 }
5149
5250 -subtle {
app/styles/mcss/marama.jsView
@@ -1,11 +1,11 @@
11 const nest = require('depnest')
2-const { assign } = Object
32 const getMCSS = require('marama/lib/get-mcss')
43
54 exports.gives = nest('styles.mcss')
65
76 exports.create = function (api) {
87 return nest('styles.mcss', (sofar = {}) => {
9- return assign(sofar, { marama: getMCSS() })
8 + sofar.marama = getMCSS()
9 + return sofar
1010 })
1111 }
app/styles/mcss/markdown.mcssView
@@ -2,8 +2,11 @@
22 p, ul, ol {
33 }
44
55 p {
6 + :first-of-type { margin-top: 0 }
7 + :last-of-type { margin-bottom: 0 }
8 +
69 a {
710 img { margin 0 .5rem }
811
912 :only-of-type {
message/html/layout/default.mcssView
@@ -2,8 +2,9 @@
22 padding: 1rem .5rem
33
44 display: grid
55 grid-template-columns: 5rem auto
6 + grid-row-gap: .5rem
67
78 section.avatar {
89 grid-column: 1 / 2
910 grid-row: 1 / span 4
@@ -45,10 +46,8 @@
4546 section.content {
4647 grid-column: 2 / 3
4748 grid-row: 2 / span 1
4849
49- margin-bottom: .5rem
50-
5150 (img) {
5251 max-width: 100%
5352 }
5453 (video) {

Built with git-ssb-web