diff --git a/public/index.css b/public/index.css index 26149b924..039294693 100644 --- a/public/index.css +++ b/public/index.css @@ -74,10 +74,9 @@ --font-family-monospace: monospace; --font-weight-medium: 600; --font-weight-bold: 700; - - --border-radius: 50px; - --border-radius-medium: 0.25rem; - + --border-radius: 1rem; + --border-radius-small: 0.5rem; + --border-radius-round: 10rem; --box-shadow-color: var(--color-secondary-2); --content-max-width: 1920px; @@ -141,7 +140,7 @@ html { } *::-webkit-scrollbar-thumb { background: transparent; - border-radius: 4px; + border-radius: var(--border-radius); } *::-webkit-scrollbar-corner { background: transparent; @@ -175,7 +174,7 @@ button { font-size: 1rem; padding: 0rem 1.5rem; border: 1px solid var(--color-foreground-6); - border-radius: var(--border-radius); + border-radius: var(--border-radius-round); cursor: pointer; min-width: 6rem; height: var(--button-regular-height); @@ -293,8 +292,8 @@ input[type="text"] { color: var(--color-foreground); background: transparent; border: 1px solid var(--color-secondary); - border-radius: var(--border-radius); - padding: 0rem 1.5rem; + border-radius: var(--border-radius-round); + padding: 1rem 1.5rem; margin: 1rem; height: var(--button-regular-height); } @@ -335,10 +334,11 @@ label.input { .dropdown, .popup { background-color: var(--color-foreground-background); margin-top: 0.5rem; + padding: 0.5rem 0; position: absolute; box-shadow: 16px 16px 32px 32px var(--color-shadow); z-index: 10; - border-radius: 0.25rem; + border-radius: var(--border-radius-small); } .error { @@ -458,7 +458,7 @@ span.small, .text-xsmall { .notice { font-size: 0.875rem; - border-radius: 0.25rem; + border-radius: var(--border-radius); color: var(--color-yellow); background-color: var(--color-yellow-background); padding: 1rem; diff --git a/src/Avatar.svelte b/src/Avatar.svelte index 90c103a04..863291b39 100644 --- a/src/Avatar.svelte +++ b/src/Avatar.svelte @@ -32,7 +32,7 @@ diff --git a/src/Blockies.svelte b/src/Blockies.svelte index 9c4734af3..fef04598a 100644 --- a/src/Blockies.svelte +++ b/src/Blockies.svelte @@ -26,7 +26,7 @@ min-height: 1rem; background-size: cover; background-repeat: no-repeat; - border-radius: 50%; + border-radius: var(--border-radius-round); } .icon.glowOnHover:hover { box-shadow: 0 0 3rem var(--color-secondary); diff --git a/src/Card.svelte b/src/Card.svelte index ae8a82e57..aa65ac56c 100644 --- a/src/Card.svelte +++ b/src/Card.svelte @@ -37,7 +37,7 @@ padding: 1rem; display: inline-block; text-align: center; - border-radius: 1rem; + border-radius: var(--border-radius); } .card::last-child { margin-right: 0; @@ -56,7 +56,7 @@ display: inline-block; font-weight: var(--font-weight-medium); margin-top: 0.75rem; - border-radius: 0.75rem; + border-radius: var(--border-radius); padding: 0rem; text-overflow: ellipsis; overflow-x: hidden; diff --git a/src/Clipboard.svelte b/src/Clipboard.svelte index 98bcd9658..1474b391a 100644 --- a/src/Clipboard.svelte +++ b/src/Clipboard.svelte @@ -26,7 +26,7 @@ stroke: var(--color-positive); } .clipboard:hover { - border-radius: 1.5rem; + border-radius: var(--border-radius); } diff --git a/src/Comment.svelte b/src/Comment.svelte index d44232a1a..03bfc0da7 100644 --- a/src/Comment.svelte +++ b/src/Comment.svelte @@ -54,7 +54,7 @@ .card { flex: 1; border: 1px solid var(--color-foreground-3); - border-radius: var(--border-radius-medium); + border-radius: var(--border-radius); } .card-header { display: flex; diff --git a/src/Dropdown.svelte b/src/Dropdown.svelte index 6a99b26db..57ce7a561 100644 --- a/src/Dropdown.svelte +++ b/src/Dropdown.svelte @@ -12,12 +12,6 @@ diff --git a/src/MobileNavbar.svelte b/src/MobileNavbar.svelte index ecfab44b6..8bae519a6 100644 --- a/src/MobileNavbar.svelte +++ b/src/MobileNavbar.svelte @@ -36,7 +36,7 @@ background: var(--color-background); min-width: 240px; max-width: 360px; - border-radius: 1rem; + border-radius: var(--border-radius); text-align: center; } .modal-title { diff --git a/src/Placeholder.svelte b/src/Placeholder.svelte index 4d48bb2f4..43c9e3e45 100644 --- a/src/Placeholder.svelte +++ b/src/Placeholder.svelte @@ -5,7 +5,7 @@ diff --git a/src/base/projects/SourceBrowser/Changeset.svelte b/src/base/projects/SourceBrowser/Changeset.svelte index c38a48e3f..57e0cfb1f 100644 --- a/src/base/projects/SourceBrowser/Changeset.svelte +++ b/src/base/projects/SourceBrowser/Changeset.svelte @@ -33,10 +33,6 @@ .changeset-summary .deletions { color: var(--color-negative); } - .diff-listing { - /* This border forces to keep the FileDiff margin-bottom visible */ - border: 1px solid transparent; - }