Skip to content

Commit

Permalink
feat(progress): add progress styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jun 30, 2021
1 parent 7a3148c commit 7a9eace
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
--ct-header-height: 2.4em;
--ct-topbar-backdrop: blur(20px);

--ct-card-border: 2px solid var(--ct-card-border-color);
--ct-card-radius: 6px;

--ct-query-header-color: #fff;
--ct-query-header-background: var(--ct-primary-color);

Expand Down Expand Up @@ -100,7 +97,6 @@ body {
border-radius: var(--ct-sidebar-item-border-radius);
margin: var(--ct-sidebar-padding) 0;
background: transparent;
border-radius: var(--ct-card-radius);
box-shadow: none;
}

Expand Down Expand Up @@ -825,6 +821,23 @@ kbd {
color: var(--ct-query-header-color);
}

/* Progress bar */
progress {
vertical-align: middle;
border-radius: 8px;
height: 0.6em;
border: 1px solid #000;
overflow: hidden;
}

progress::-webkit-progress-bar {
background: var(--ls-tertiary-background-color);
}

progress::-webkit-progress-value {
background: var(--ct-success-color);
}

/* Some tweaks on making this theme a bit more compact on mobile.
Mobile cap is 640px */
@media (max-width: 640px) {
Expand Down Expand Up @@ -922,8 +935,6 @@ html[data-theme="dark"] {
--ls-primary-text-color: rgb(235, 235, 235);
--ls-secondary-text-color: rgb(200, 200, 200);

--ct-card-border-color: var(--ls-quaternary-background-color);

--ct-bold-color: #fff;
--ct-bold-color-transparent: rgba(255, 255, 255, 0.3);

Expand Down

0 comments on commit 7a9eace

Please sign in to comment.