Skip to content

Commit

Permalink
move values to vars, adjust separation height on drag
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 11, 2023
1 parent a155066 commit 268ea15
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
--txt-col-1: #000;
--txt-col-2: #444;
--txt-col-3: #666;
--font-size-title: 2rem;
--card-border-rad: .75rem;
--card-open-transition: 250ms;
--card-padding: .5rem;
--card-drag-padding: calc(var(--font-size-title) + var(--card-padding) * 2.75);
--hover-anim-duration: 250ms;
--menu-width: 350px;
--viewport-min-width: 600px;
Expand Down Expand Up @@ -179,7 +182,7 @@ body {background-color: var(--bgc-page);}
box-sizing: border-box;
width: 100%;
box-shadow: var(--card-shadow);
padding: .5rem;
padding: var(--card-padding);
display: grid;
grid-template-columns: auto 1fr auto auto;
grid-template-rows: repeat(6, auto);
Expand All @@ -203,7 +206,7 @@ body {background-color: var(--bgc-page);}
.card:last-of-type { border-radius: 0 0 var(--card-border-rad) var(--card-border-rad); }

.card .title {
font-size: 2rem;
font-size: var(--font-size-title);
color: var(--txt-col-1);
cursor: pointer;
padding-left: .5rem;
Expand Down Expand Up @@ -748,10 +751,10 @@ input[type="text"], input[type="date"] {
}

.margin-top {
margin-top: 3rem;
margin-top: var(--card-drag-padding);
}
.margin-bottom {
margin-bottom: 3rem;
margin-bottom: var(--card-drag-padding);
}


Expand Down

0 comments on commit 268ea15

Please sign in to comment.