apps/jotts/static/styles.css 2.1 K raw
1
/* jotts — app-specific styles.
2
 * Shared reset / tokens / components come from /assets/darkmatter.css.
3
 */
4
5
.note-list {
6
  display: flex;
7
  flex-direction: column;
8
  width: 100%;
9
}
10
11
.note-item {
12
  display: flex;
13
  justify-content: space-between;
14
  align-items: center;
15
  padding: 8px 0;
16
  border-bottom: 1px solid #333;
17
  text-decoration: none;
18
}
19
20
.note-item:hover {
21
  opacity: 0.7;
22
}
23
24
.note-title {
25
  font-size: 16px;
26
}
27
28
.note-date {
29
  font-size: 12px;
30
  opacity: 0.5;
31
}
32
33
/* Note view */
34
35
.note-header {
36
  display: flex;
37
  flex-direction: column;
38
  gap: 0.25rem;
39
}
40
41
.note-header h1 {
42
  font-size: 24px;
43
  font-weight: 700;
44
  letter-spacing: -0.5px;
45
}
46
47
.note-actions {
48
  display: flex;
49
  gap: 1.5rem;
50
  font-size: 12px;
51
}
52
53
/* Markdown rendered content */
54
55
.markdown-body {
56
  width: 100%;
57
  line-height: 1.6;
58
}
59
60
.markdown-body h1,
61
.markdown-body h2,
62
.markdown-body h3,
63
.markdown-body h4,
64
.markdown-body h5,
65
.markdown-body h6 {
66
  margin-top: 1.5rem;
67
  margin-bottom: 0.5rem;
68
  font-weight: 700;
69
}
70
71
.markdown-body h1 { font-size: 18px; }
72
.markdown-body h2 { font-size: 16px; }
73
.markdown-body h3 { font-size: 15px; }
74
.markdown-body h4,
75
.markdown-body h5,
76
.markdown-body h6 { font-size: 14px; }
77
78
.markdown-body p {
79
  margin-bottom: 0.75rem;
80
}
81
82
.markdown-body ul,
83
.markdown-body ol {
84
  margin-left: 1.5rem;
85
  margin-bottom: 0.75rem;
86
}
87
88
.markdown-body li {
89
  margin-bottom: 0.25rem;
90
}
91
92
.markdown-body pre {
93
  margin-bottom: 0.75rem;
94
}
95
96
.markdown-body blockquote {
97
  border-left: 2px solid #555;
98
  padding-left: 12px;
99
  opacity: 0.7;
100
  margin-bottom: 0.75rem;
101
}
102
103
.markdown-body table {
104
  margin-bottom: 0.75rem;
105
}
106
107
.markdown-body th,
108
.markdown-body td {
109
  border: 1px solid #333;
110
  padding: 6px;
111
  text-align: left;
112
}
113
114
.markdown-body th {
115
  font-weight: 700;
116
}
117
118
.markdown-body hr {
119
  border: none;
120
  border-top: 1px solid #333;
121
  margin: 1rem 0;
122
}
123
124
.markdown-body a {
125
  text-decoration: underline;
126
}
127
128
.markdown-body img {
129
  max-width: 100%;
130
}
131
132
.markdown-body li:has(> input[type="checkbox"]) {
133
  list-style: none;
134
  margin-left: -1.5rem;
135
}
136
137
.markdown-body input[type="checkbox"] {
138
  width: 14px;
139
  height: 14px;
140
  margin-right: 6px;
141
  vertical-align: middle;
142
  position: relative;
143
  top: -1px;
144
}