Skip to content

Commit

Permalink
Merge pull request #188 from pavlovcik/styles/match-pitchdeck-ii
Browse files Browse the repository at this point in the history
Styles/match pitchdeck ii
  • Loading branch information
0x4007 authored Mar 9, 2024
2 parents c3174d6 + 10fa05a commit 9d7429c
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 15 deletions.
2 changes: 2 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
</head>
<body>
<background>
<div class="gradient"></div>
<div class="gradient"></div>
<div id="grid"></div>
</background>
<main>
Expand Down
33 changes: 31 additions & 2 deletions static/styles/rewards/background.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,39 @@ background {
}

background #grid {
-webkit-mask-image: radial-gradient(#00000020 0, #00000080 100%);
mask-image: radial-gradient(#00000020 0, #00000080 100%);
/* -webkit-mask-image: radial-gradient(#00000020 0, #00000080 100%); */
/* mask-image: radial-gradient(#00000020 0, #00000080 100%); */
/* opacity: 1; */
pointer-events: none;
opacity: 0.5;

/* background-image: url(../../media/grid-1.png); */
/* background-repeat: repeat; */
}

canvas {
width: 100vw;
height: 100vh;
}

.gradient {
width: 200vw;
height: 200vh;
position: absolute;
background-image: radial-gradient(#00bfff00 0%, #00bfffff 15%, #00bfff00 34%, #00bfffff 58%, #00bfff00 75%, #00bfffff 100%);
opacity: 0;
animation: fadeIn 2s ease-in-out forwards;
}

background > :nth-child(1) {
transform: translateX(-100vw);
}
background > :nth-child(2) {
transform: translateY(-50vh);
}

@keyframes fadeIn {
to {
opacity: 0.125;
}
}
10 changes: 7 additions & 3 deletions static/styles/rewards/claim-table.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:root {
--left-table-column-width: 120px;

--background-color-default-brightness: 3%;
--background-color-default-brightness: 1%;
--background-color-light-brightness: 6%;
--border-brightness: 9%;
--border-brightness: 5%;

--background-color-default: hsl(225 50% var(--background-color-default-brightness) / 1);
--background-color-light: hsl(225 50% var(--background-color-light-brightness) / 1);
Expand All @@ -29,6 +29,8 @@ table {
max-width: 640px;
background-color: var(--background-color-default);
border: 1px solid var(--border-color);
/* box-shadow: inset 0 0 96px #00bfff10; */
box-shadow: 0 12px 64px #00000010;
}
table tr {
/* width: 100%; */
Expand Down Expand Up @@ -192,7 +194,7 @@ table[data-claim-rendered] tr {
}
table[data-claim-rendered] tr#additional-details-border {
/* background-color: #80808010; */
background-color: var(--background-color-light);
/* background-color: var(--background-color-light); */
/* -webkit-backdrop-filter: blur(4px); */
/* backdrop-filter: blur(4px); */
/* border: 1px solid #80808020; */
Expand Down Expand Up @@ -262,6 +264,8 @@ table thead {
}
table tbody {
display: none;
/* box-shadow: inset 0 0 96px #00000008; */
box-shadow: inset 0 0 96px #00bfff10;
}
table[data-claim="error"] thead {
display: table-row-group;
Expand Down
23 changes: 18 additions & 5 deletions static/styles/rewards/light-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
table[data-claim-rendered] button:hover > div {
color: #000;
}

table[data-claim-rendered] button:hover{
background-color: #80808018;
}
table a:hover,
table a:hover > div {
color: #000;
Expand All @@ -62,23 +64,34 @@
html {
background-color: #fff;
}
#grid {
opacity: 0.25;
background #grid {
opacity: 0.33;
filter: invert(1);
}

table {
background-color: var(--light-mode-background-color-default);
/* background-color: #fff; */
border: 1px solid var(--light-mode-border-color);
/* box-shadow: inset 0 0 96px #00000010; */
}

table tbody{
box-shadow: inset 0 0 96px #00000008;
}

table[data-claim-rendered] tr#additional-details-border {
background-color: var(--light-mode-background-color-dark);
/* background-color: var(--light-mode-background-color-dark); */
}
table[data-details-visible="true"] #additional-details-border ~ tr {
background-color: var(--light-mode-background-color-dark);
/* background-color: var(--light-mode-background-color-dark); */
}
.notifications .toast {
border: 1px solid var(--light-mode-border-color);
background-color: var(--light-mode-background-color-default);
}
.gradient {
opacity: 0;
animation: none;
}
}
5 changes: 0 additions & 5 deletions static/styles/rewards/pay.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,3 @@ footer {
/* width: 100%; */
/* padding-bottom: env(safe-area-inset-bottom); */
}

canvas {
width: 100vw;
height: 100vh;
}

0 comments on commit 9d7429c

Please sign in to comment.