Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove global table styling
Rūdolfs Ošiņš committed 3 years ago
commit 538c6d90c11223e07972edeb6b1d275add7f097e
parent 81b60ab229f1bd49ce5d5042dfe373e8761b666b
3 files changed +30 -18
modified public/index.css
@@ -272,16 +272,3 @@ button.error:hover {
  color: var(--color-background);
  background-color: var(--color-negative);
}
-

-
table {
-
  table-layout: fixed;
-
  border-collapse: separate;
-
  border-spacing: 2rem 0;
-
}
-
td {
-
  text-align: left;
-
  text-overflow: ellipsis;
-
}
-
td strong {
-
  font-weight: var(--font-weight-medium);
-
}
modified src/Markdown.svelte
@@ -91,11 +91,6 @@
    color: var(--color-foreground);
  }

-
  .markdown :global(*:first-child) {
-
    padding-top: 0;
-
    margin-top: 0;
-
  }
-

  .markdown :global(h1) {
    font-size: calc(var(--font-size-huge) * 0.75);
    font-weight: var(--font-weight-medium);
@@ -225,6 +220,27 @@
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }
+
  .markdown :global(table) {
+
    margin: 1.5rem 0;
+
    border-collapse: collapse;
+
    border-radius: 0.5rem;
+
    border-style: hidden;
+
    box-shadow: 0 0 0 1px var(--color-foreground-subtle);
+
    overflow: hidden;
+
  }
+
  .markdown :global(td) {
+
    text-align: left;
+
    text-overflow: ellipsis;
+
    border: 1px solid var(--color-foreground-subtle);
+
    padding: 0.5rem 1rem;
+
  }
+
  .markdown :global(tr:nth-child(even)) {
+
    background-color: var(--color-foreground-even-subtler);
+
  }
+
  .markdown :global(th) {
+
    text-align: center;
+
    padding: 0.5rem 1rem;
+
  }
</style>

{#if content}
modified src/base/vesting/Index.svelte
@@ -53,6 +53,15 @@
    margin-left: 1.5rem;
    color: var(--color-secondary);
  }
+
  table {
+
    table-layout: fixed;
+
    border-collapse: separate;
+
    border-spacing: 2rem 0;
+
  }
+
  td {
+
    text-align: left;
+
    text-overflow: ellipsis;
+
  }
</style>

<svelte:head>