Skip to content

Commit

Permalink
[feature] add size controls to header items
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox authored Jun 11, 2019
1 parent 3fbbc5b commit 90fa411
Show file tree
Hide file tree
Showing 27 changed files with 677 additions and 422 deletions.
6 changes: 3 additions & 3 deletions css/auto-suggest.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
left: 0;
width: 100%;
max-height: 40vh;
border-radius: var(--radius);
border-radius: var(--theme-radius);
overflow-y: auto;
z-index: var(--z-index-auto-suggest-list);
display: flex;
Expand All @@ -35,7 +35,7 @@
border-width: var(--form-input-border);
border-style: solid;
border-color: transparent;
border-radius: var(--radius);
border-radius: var(--theme-radius);
width: 100%;
height: 100%;
display: flex;
Expand Down Expand Up @@ -64,7 +64,7 @@
color: rgb(var(--form-input-text-focus));
outline: none;
text-decoration: none;
box-shadow: 0 0 0 var(--line-width) rgb(var(--accent)), 0 0 0 calc(var(--line-width) * 2) rgba(var(--accent), 0.25);
box-shadow: 0 0 0 var(--line-width) rgb(var(--theme-accent)), 0 0 0 calc(var(--line-width) * 2) rgba(var(--theme-accent), 0.25);
}

.auto-suggest-link:active {
Expand Down
2 changes: 1 addition & 1 deletion css/background.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.background-accent {
background-color: rgba(var(--accent), var(--background-accent-opacity));
background-color: rgba(var(--theme-accent), var(--background-accent-opacity));
position: absolute;
top: 0;
left: 0;
Expand Down
64 changes: 34 additions & 30 deletions css/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--accent: 250, 130, 0;
--root-font-size: 14px;
--black: 0, 0, 0;
--white: 255, 255, 255;
--shade-01: 38, 40, 49;
Expand Down Expand Up @@ -45,40 +45,33 @@
--form-checkbox-radio-chcked-label: var(--gray-16);
--form-checkbox-radio-disabled-label: var(--gray-04);
--form-range-thumb: var(--gray-12);
--root-font-size: 14px;
--radius: 0.2em;
--theme-accent: 250, 130, 0;
--theme-radius: 0.2rem;
--line-width: 0.2em;
--background: rgb(var(--gray-01));
--gutter: 0.5rem;
--animation-speed-fast: 0.2s;
--animation-speed-medium: 0.4s;
--animation-speed-slow: 0.6s;
--font-regular: "Open Sans Regular", sans-serif;
--font-bold: "Open Sans Bold", sans-serif;
--font-light: "Open Sans Light", sans-serif;
--font-fjalla: "Fjalla One Regular", sans-serif;
--z-index-background: 1000;
--z-index-link: 2000;
--z-index-header: 3000;
--z-index-tip: 4000;
--z-container-edge: 5000;
--z-index-shade: 6000;
--z-index-modal: 7000;
--z-index-menu: 8000;
--z-index-auto-suggest-list: 8000;
--z-index-edge: 9000;
--header-area-width: 100%;
--header-shade-color: transparent;
--header-shade-opacity: none;
--header-search-width: 0%;
--header-padding-top: calc(var(--line-width) * var(--header-padding-multiplier-top));
--header-padding-bottom: calc(var(--line-width) * var(--header-padding-multiplier-bottom));
--header-padding-multiplier-top: 4;
--header-padding-multiplier-bottom: 4;
--header-border-width-top: calc(var(--line-width) * var(--header-border-width-multiplier-top));
--header-border-width-bottom: calc(var(--line-width) * var(--header-border-width-multiplier-bottom));
--header-border-width-multiplier-top: 1;
--header-border-width-multiplier-bottom: 1;
--header-padding-top: calc(var(--line-width) * var(--header-padding-top-multiplier));
--header-padding-bottom: calc(var(--line-width) * var(--header-padding-bottom-multiplier));
--header-padding-top-multiplier: 4;
--header-padding-bottom-multiplier: 4;
--header-border-width-top: calc(var(--line-width) * var(--header-border-width-top-multiplier));
--header-border-width-bottom: calc(var(--line-width) * var(--header-border-width-bottom-multiplier));
--header-border-width-top-multiplier: 1;
--header-border-width-bottom-multiplier: 1;
--header-date-size: 1em;
--header-clock-size: 1em;
--header-search-size: 1em;
--header-button-size: 1em;
--header-greeting-size: 1em;
--header-transitional-size: 1em;
--link-area-width: 100%;
--link-area-gutter-multiplier: 2;
--link-item-size: 1em;
Expand All @@ -90,13 +83,24 @@
--background-accent-opacity: 0;
--background-blur: 0;
--layout-width: 80%;
--menu-border: calc(var(--line-width) * 1) solid rgb(var(--gray-03));
--animation-speed-fast: 0.2s;
--animation-speed-medium: 0.4s;
--animation-speed-slow: 0.6s;
--shadow-small: 0 2px 1px rgba(0, 0, 0, 0.1), 0 3px 2px rgba(0, 0, 0, 0.1);
--shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1), 0 6px 15px rgba(0, 0, 0, 0.1);
--shadow-large: 0 4px 10px rgba(0, 0, 0, 0.1), 0 6px 30px rgba(0, 0, 0, 0.1);
--shadow-small-inset: inset 0 1px 1px rgba(0, 0, 0, 0.05);
--shadow-medium-inset: inset 0 2px 2px rgba(0, 0, 0, 0.1);
--shadow-large-inset: inset 0 3px 3px rgba(0, 0, 0, 0.15);
--z-index-background: 1000;
--z-index-link: 2000;
--z-index-header: 3000;
--z-index-tip: 4000;
--z-index-shade: 5000;
--z-index-modal: 6000;
--z-index-menu: 7000;
--z-index-auto-suggest-list: 8000;
--z-index-edge: 9000;
/* breakpoint reference */
/* can not be used in @media as of yet */
--breakpoint-sm: 550px;
Expand All @@ -109,15 +113,15 @@
:root.is-link-style-block {
--link-item-width: 11em;
--link-item-height: 10em;
--url-height: 20%;
--edit-height: 30%;
--link-item-url-height: 20%;
--link-item-edit-height: 30%;
}

:root.is-link-style-list {
--link-item-width: 20em;
--link-item-height: 4em;
--url-height: 30%;
--edit-height: 50%;
--link-item-url-height: 30%;
--link-item-edit-height: 50%;
}

@media (min-width: 700px) {
Expand All @@ -127,7 +131,7 @@
}

::selection {
background-color: rgb(var(--accent));
background-color: rgb(var(--theme-accent));
color: rgb(var(--white));
}

Expand Down
8 changes: 4 additions & 4 deletions css/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ input[type="submit"] {
border-bottom-width: var(--line-width);
border-style: solid;
border-color: transparent;
border-radius: var(--radius);
border-radius: var(--theme-radius);
text-align: center;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
box-shadow: none;
transition: all var(--animation-speed-fast) ease-in-out;
transition: background-color var(--animation-speed-fast) ease-in-out, color var(--animation-speed-fast) ease-in-out, border var(--animation-speed-fast) ease-in-out;
display: inline-flex;
flex-direction: row;
justify-content: center;
Expand Down Expand Up @@ -51,7 +51,7 @@ input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
background-color: rgb(var(--gray-04));
border-bottom-color: rgb(var(--accent));
border-bottom-color: rgb(var(--theme-accent));
color: rgb(var(--button-text-active));
transition: none;
}
Expand Down Expand Up @@ -83,7 +83,7 @@ button [class*=" icon-"],
}

.button.active {
border-bottom-color: rgb(var(--accent));
border-bottom-color: rgb(var(--theme-accent));
color: rgb(var(--button-text-active));
}

Expand Down
4 changes: 2 additions & 2 deletions css/clock.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.clock {
margin: 0;
padding: 0;
border-radius: var(--radius);
border-radius: var(--theme-radius);
font-size: 1em;
font-family: var(--font-fjalla);
color: rgb(var(--style-neutral-text));
Expand Down Expand Up @@ -39,7 +39,7 @@

.clock-separator {
justify-content: center;
color: rgb(var(--accent));
color: rgb(var(--theme-accent));
}

.clock-hours,
Expand Down
4 changes: 2 additions & 2 deletions css/date.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.date {
margin: 0;
padding: 0;
border-radius: var(--radius);
border-radius: var(--theme-radius);
font-size: 1em;
font-family: var(--font-fjalla);
color: rgb(var(--style-neutral-text));
Expand Down Expand Up @@ -39,7 +39,7 @@

.date-separator {
justify-content: center;
color: rgb(var(--accent));
color: rgb(var(--theme-accent));
}

.date-date,
Expand Down
6 changes: 3 additions & 3 deletions css/edge.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.edge {
background-color: rgba(var(--accent), 0.10);
background-color: rgba(var(--theme-accent), 0.10);
width: 0;
height: 0;
position: absolute;
top: 0;
left: 0;
opacity: 0;
border-radius: calc(var(--radius) * 2);
box-shadow: inset 0 0 0 var(--line-width) rgb(var(--accent)), inset 0 0 0 calc(var(--line-width) * 2) rgba(var(--accent), 0.25), inset 0 0 0 calc(var(--line-width) * 3) rgba(var(--accent), 0.25);
border-radius: var(--theme-radius);
box-shadow: inset 0 0 0 var(--line-width) rgb(var(--theme-accent)), inset 0 0 0 calc(var(--line-width) * 2) rgba(var(--theme-accent), 0.25), inset 0 0 0 calc(var(--line-width) * 3) rgba(var(--theme-accent), 0.25);
z-index: var(--z-index-edge);
pointer-events: none;
transition: opacity var(--animation-speed-fast) ease-in-out;
Expand Down
Loading

0 comments on commit 90fa411

Please sign in to comment.