summaryrefslogtreecommitdiff
path: root/src/components/Logs.module.css
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-04-14 22:56:14 +0800
committerHaishan <[email protected]>2019-04-14 22:56:14 +0800
commit7dac1d44c7b13184e4a1cbdb4113df2bb8db9d7e (patch)
tree44ca70a51497d5e0dddadaca384ee20541a157fe /src/components/Logs.module.css
parent4a4f58c88a857d222fbd21749bfd7019eaee8659 (diff)
refactor: replace sass with postcss
Diffstat (limited to 'src/components/Logs.module.css')
-rw-r--r--src/components/Logs.module.css77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/components/Logs.module.css b/src/components/Logs.module.css
new file mode 100644
index 0000000..5113afc
--- /dev/null
+++ b/src/components/Logs.module.css
@@ -0,0 +1,77 @@
+.logMeta {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ font-size: 0.9em;
+ padding: 10px;
+}
+
+.logType {
+ color: #eee;
+ flex-shrink: 0;
+ text-align: center;
+ width: 66px;
+ background: green;
+ border-radius: 5px;
+ padding: 3px 5px;
+ margin: 0 8px;
+}
+
+.logTime {
+ flex-shrink: 0;
+ color: #999;
+ font-size: 14px;
+}
+
+.logText {
+ flex-shrink: 0;
+ display: flex;
+ font-family: 'Roboto Mono', Menlo, monospace;
+ align-items: center;
+ padding: 8px 0;
+ /* force wrap */
+ width: 100%;
+ white-space: pre;
+ overflow: auto;
+}
+
+/*******************/
+
+.logsWrapper {
+ margin: 0;
+ padding: 0;
+ color: var(--color-text);
+
+ :global {
+ li {
+ background: var(--color-background);
+ }
+ li.even {
+ background: var(--color-background);
+ }
+ }
+}
+
+.log {
+ padding: 10px 40px;
+}
+
+/*******************/
+
+.logPlaceholder {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ color: #2d2d30;
+
+ div:nth-child(2) {
+ color: var(--color-text-secondary);
+ font-size: 1.4em;
+ opacity: 0.6;
+ }
+}
+
+.logPlaceholderIcon {
+ opacity: 0.3;
+}