Skip to content

Commit

Permalink
Merge pull request #9 from add2cal/dev
Browse files Browse the repository at this point in the history
style update
  • Loading branch information
jekuer committed Aug 27, 2022
2 parents 54ce2d4 + f39d1bb commit b9161d4
Show file tree
Hide file tree
Showing 28 changed files with 67 additions and 2,647 deletions.
52 changes: 42 additions & 10 deletions demo_assets/css/demopage.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
--primary-color-atcb-light: #cbaaff;
--secondary-color: #ffa255;
--secondary-color-light: #ffd0aa;
--page-background: #f5f5f5;
--example-bg: #e1ecf9;
--page-background: #e7e8f4;
--example-bg: #fff;
--text: #333;
--text-secondary: #969696;
--text-subline: #fff;
Expand Down Expand Up @@ -65,6 +65,18 @@ body.atcb-dark {
url('../fonts/paytone-one-v18-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
}

/* nunito-300 - latin */
@font-face {
font-display: swap;
font-family: Nunito;
font-style: normal;
font-weight: 300;
src: local(''),
url('../fonts/nunito-v25-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/nunito-v25-latin-300.woff') format('woff'), /* Modern Browsers */
url('../fonts/nunito-v25-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
}

/* nunito-regular - latin */
@font-face {
font-display: swap;
Expand Down Expand Up @@ -382,7 +394,7 @@ body.atcb-dark .light-mode-switch div::after {
}

#light-mode-switch-header div::after {
background: var(--primary-color-atcb-light);
background: var(--primary-color-light);
}

@media (max-width: 991px) {
Expand All @@ -396,7 +408,7 @@ body.atcb-dark .light-mode-switch div::after {
*/

#header {
background: linear-gradient(45deg, var(--primary-color), var(--primary-color-light), var(--primary-color-atcb-light), var(--primary-color-atcb-light));
background: linear-gradient(45deg, var(--primary-color), var(--primary-color), var(--primary-color-light), var(--primary-color-light));
box-shadow: var(--header-shadow);
display: flex;
justify-content: center;
Expand All @@ -412,6 +424,14 @@ body.atcb-dark .light-mode-switch div::after {
margin: 80px;
}

.example-wrapper {
box-sizing: border-box;
margin: auto;
max-width: 1000px;
padding: 0 25px;
width: 100%;
}

.example {
box-shadow: rgba(0 0 0 / 10%) 2px 5px 18px -1px, rgba(0 0 0 / 20%) 2px 2px 10px -3px;
box-sizing: border-box;
Expand All @@ -421,7 +441,7 @@ body.atcb-dark .light-mode-switch div::after {
width: 100%;
border-radius: 20px;
background-color: var(--example-bg);
padding: 60px 20px;
padding: 60px 20px;
}

.tz-input-wrapper {
Expand Down Expand Up @@ -457,6 +477,17 @@ body.atcb-dark .light-mode-switch div::after {
}
}

@media (max-width: 575px) {
.example-wrapper {
padding: 0;
}

.example {
border-radius: 0;
padding: 60px 30px;
}
}

code,
pre {
color: var(--example-color);
Expand Down Expand Up @@ -490,9 +521,10 @@ pre {
*/

.autocomplete-input {
border: 1px solid #eee;
border: 1px solid var(--example-border);
box-shadow: rgba(0 0 0 / 10%) 2px 5px 18px -1px, rgba(0 0 0 / 40%) 2px 2px 10px -3px;
border-radius: 8px;
font-family: Nunito, Arial, sans-serif;
width: 100%;
padding: 12px 48px 12px 12px;
box-sizing: border-box;
Expand All @@ -508,7 +540,7 @@ pre {

.autocomplete-input:focus,
.autocomplete-input[aria-expanded="true"] {
border-color: rgba(0, 0, 0, 0.12);
border-color: var(--primary-color);
background-color: #fff;
outline: none;
box-shadow: rgba(0 0 0 / 30%) 2px 5px 18px -1px, rgba(0 0 0 / 35%) 2px 2px 10px -3px;
Expand All @@ -528,7 +560,7 @@ pre {
/* Loading spinner */
.autocomplete[data-loading="true"]::after {
content: "";
border: 3px solid rgba(0, 0, 0, 0.12);
border: 3px solid var(--primary-color);
border-right: 3px solid rgba(0, 0, 0, 0.48);
border-radius: 100%;
width: 20px;
Expand All @@ -542,7 +574,7 @@ pre {

.autocomplete-result-list {
margin: 0;
border: 1px solid rgba(0, 0, 0, 0.12);
border: 2px solid var(--primary-color);
padding: 0;
box-sizing: border-box;
max-height: 296px;
Expand Down Expand Up @@ -598,7 +630,7 @@ pre {

.autocomplete-result:not(.no-result):hover,
.autocomplete-result[aria-selected="true"] {
background-color: rgba(0, 0, 0, 0.06);
background-color: var(--primary-color-light);
}

.autocomplete-result.no-result:hover {
Expand Down
2 changes: 1 addition & 1 deletion demo_assets/css/demopage.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo_assets/css/demopage.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed demo_assets/fonts/fira-mono-v14-latin-700.eot
Binary file not shown.
Loading

0 comments on commit b9161d4

Please sign in to comment.