git ssb

16+

Dominic / patchbay



Tree: c57ff654a8c9a637c6b7842e46cb621585484e81

Files: c57ff654a8c9a637c6b7842e46cb621585484e81 / app / styles / css / global.js

2292 bytesRaw
1const nest = require('depnest')
2const { assign } = Object
3
4exports.gives = nest('styles.css')
5
6exports.create = function (api) {
7 return nest('styles.css', (sofar = {}) => {
8 return assign(sofar, { globalStyles })
9 })
10}
11
12const globalStyles = `
13body {
14 font-family: helvetica, sans-serif;
15 font-size: 14px;
16 line-height: 1.4;
17 color: #222;
18}
19
20blockquote {
21 border-left: 2px #ccc solid;
22 color: #666;
23 padding-left: .6rem;
24 margin-left: .6rem;
25 font-size: .85rem;
26}
27
28blockquote p:last-child {
29 margin-bottom: .35ex;
30}
31
32pre {
33 background-color: #f5f5f5;
34 padding: .3rem;
35 color: #444;
36}
37
38.emoji {
39 height: 1.2em;
40 width: 1.2em;
41 vertical-align: middle;
42 margin-top: -0.2em;
43}
44
45p, ul, ol {
46 margin-top: .35em;
47}
48
49h1, h2, h3, h4, h5, h6 {
50 margin: 0;
51}
52h1, h2 {
53 margin-bottom: .5em
54}
55h1 { font-size: 1.4rem; }
56h2 { font-size: 1.2em; }
57h3 { font-size: 1.15rem; }
58h4 { font-size: 1.12rem; }
59h5 { font-size: 1.1rem; }
60h6 { font-size: 1rem; }
61
62* {
63 word-break: break-word;
64}
65
66a:link, a:visited, a:active {
67 color: #0088cc;
68 text-decoration: none;
69}
70
71a:hover,
72a:focus {
73 color: #005580;
74 text-decoration: underline;
75}
76
77pre {
78 white-space: pre-wrap;
79 word-wrap: break-word;
80}
81
82p {
83 margin-top: .35ex;
84}
85
86hr {
87 border: solid #eee;
88 clear: both;
89 border-width: 1px 0 0;
90 height: 0;
91 margin-bottom: .9em;
92}
93
94input, textarea {
95 border: none;
96 border-radius: .2em;
97 font-family: sans-serif;
98}
99
100input:focus, .compose:focus, button:focus {
101 outline: none;
102 border-color: #0088cc;
103 box-shadow: 0 0 4px #0088cc;
104}
105
106textarea {
107 padding: .5em;
108 font-size: 1em;
109}
110
111textarea:focus {
112 outline: none;
113 border-color: none;
114}
115
116button {
117 background: #fff;
118 color: #666;
119 border: 1px solid #bbb;
120 border-radius: .5em;
121 padding: .7em;
122 margin: .5em;
123 cursor: pointer;
124 text-transform: uppercase;
125 font-weight: bold;
126 font-size: .7em;
127}
128
129button:hover {
130 background: #ccc;
131 border: 1px solid #bbb;
132}
133
134/* TextNodeSearcher highlights */
135
136highlight {
137 background: #ff8;
138}
139
140/* lightbox - used in message-confirm */
141
142div.lightbox {
143 position: fixed;
144 left: 0px;
145 right: 0px;
146 top: 50px;
147 overflow: auto;
148 width: 780px;
149 max-width: 100%;
150 padding: 25px;
151 margin: auto;
152 z-index: 2;
153 background: #f5f5f5;
154 border: 1px solid #eee;
155 border-radius: .2em;
156}
157`
158

Built with git-ssb-web