0.2.6
style (user): Improve dark mode color profile
This commit is contained in:
parent
e165ac96fd
commit
41f5eee402
25
css/main.css
25
css/main.css
@ -22,7 +22,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body[data-theme=dark] {
|
body[data-theme=dark] {
|
||||||
--accent-color: #a293d0;
|
--accent-color: #8860ff;
|
||||||
--text-color: 238, 238, 238;
|
--text-color: 238, 238, 238;
|
||||||
--text-color-light: 170, 170, 170;
|
--text-color-light: 170, 170, 170;
|
||||||
--foreground-color: 26, 26, 26;
|
--foreground-color: 26, 26, 26;
|
||||||
@ -208,6 +208,9 @@ span.ripple {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sm-button {
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
sm-button[variant=outlined] {
|
sm-button[variant=outlined] {
|
||||||
--accent-color: rgba(var(--text-color), 1);
|
--accent-color: rgba(var(--text-color), 1);
|
||||||
}
|
}
|
||||||
@ -269,7 +272,7 @@ sm-button[variant=outlined] {
|
|||||||
border-radius: 0.8rem;
|
border-radius: 0.8rem;
|
||||||
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16);
|
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: white;
|
||||||
background: var(--accent-color);
|
background: var(--accent-color);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
transition: transform 0.3s, opacity 0.3s;
|
transition: transform 0.3s, opacity 0.3s;
|
||||||
@ -298,13 +301,22 @@ sm-button[variant=outlined] {
|
|||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
}
|
}
|
||||||
#on_boarding .icon {
|
#on_boarding .icon {
|
||||||
stroke: rgba(var(--foreground-color), 1);
|
stroke-width: 8;
|
||||||
|
stroke: white;
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
#on_boarding sm-button[variant=no-outline]::part(button) {
|
||||||
|
background: rgba(var(--foreground-color), 1);
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
|
#on_boarding sm-button:not([variant=no-outline])::part(button) {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
.action {
|
.action {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -807,6 +819,7 @@ details p {
|
|||||||
.user-panel .action {
|
.user-panel .action {
|
||||||
width: auto;
|
width: auto;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
border-radius: 2rem;
|
||||||
}
|
}
|
||||||
.user-panel .action h4 {
|
.user-panel .action h4 {
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
@ -1687,6 +1700,8 @@ sm-panel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#add_person_btn {
|
#add_person_btn {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -1696,9 +1711,7 @@ sm-panel {
|
|||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
-webkit-tap-highlight-color: transparent;
|
||||||
#add_person_btn:active {
|
|
||||||
transform: scale(0.95);
|
|
||||||
}
|
}
|
||||||
#add_person_btn .icon {
|
#add_person_btn .icon {
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@ body {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
body[data-theme="dark"]{
|
body[data-theme="dark"]{
|
||||||
--accent-color: #a293d0;
|
--accent-color: #8860ff;
|
||||||
--text-color: 238, 238, 238;
|
--text-color: 238, 238, 238;
|
||||||
--text-color-light: 170, 170, 170;
|
--text-color-light: 170, 170, 170;
|
||||||
--foreground-color: 26, 26, 26;
|
--foreground-color: 26, 26, 26;
|
||||||
@ -204,8 +204,11 @@ span.ripple{
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
sm-button[variant="outlined"]{
|
sm-button{
|
||||||
--accent-color: rgba(var(--text-color), 1);
|
color: rgba(var(--text-color), 1);
|
||||||
|
&[variant="outlined"]{
|
||||||
|
--accent-color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.loader {
|
.loader {
|
||||||
@ -267,7 +270,7 @@ sm-button[variant="outlined"]{
|
|||||||
border-radius: 0.8rem;
|
border-radius: 0.8rem;
|
||||||
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16);
|
box-shadow: 0.1em 0.2em 1em rgba(var(--text-color), 0.16);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: white;
|
||||||
background: var(--accent-color);
|
background: var(--accent-color);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
transition: transform 0.3s, opacity 0.3s;
|
transition: transform 0.3s, opacity 0.3s;
|
||||||
@ -295,14 +298,25 @@ sm-button[variant="outlined"]{
|
|||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
}
|
}
|
||||||
.icon{
|
.icon{
|
||||||
stroke: rgba(var(--foreground-color), 1);
|
stroke-width: 8;
|
||||||
|
stroke: white;
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
sm-button{
|
||||||
|
&[variant="no-outline"]::part(button){
|
||||||
|
background: rgba(var(--foreground-color), 1);
|
||||||
|
color: rgba(var(--text-color), 1);
|
||||||
|
}
|
||||||
|
&:not([variant="no-outline"])::part(button){
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.action {
|
.action {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -821,6 +835,7 @@ details{
|
|||||||
.action{
|
.action{
|
||||||
width: auto;
|
width: auto;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
border-radius: 2rem;
|
||||||
h4{
|
h4{
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
background-color: rgba(var(--text-color), 0.1);
|
background-color: rgba(var(--text-color), 0.1);
|
||||||
@ -1723,6 +1738,8 @@ sm-panel{
|
|||||||
gap: 2rem 0.2rem;
|
gap: 2rem 0.2rem;
|
||||||
}
|
}
|
||||||
#add_person_btn{
|
#add_person_btn{
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -1732,9 +1749,7 @@ sm-panel{
|
|||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
&:active{
|
-webkit-tap-highlight-color: transparent;
|
||||||
transform: scale(0.95);
|
|
||||||
}
|
|
||||||
.icon{
|
.icon{
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
width: 3rem;
|
width: 3rem;
|
||||||
|
|||||||
10
index.html
10
index.html
@ -2287,8 +2287,8 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('mousedown', (e) => {
|
document.addEventListener('mousedown', (e) => {
|
||||||
if (e.target.closest('.option, .activity, .person, .navbar-item, sm-button')) {
|
if (e.target.closest('.option, .activity, .person, .navbar-item, sm-button, .action:not(:disabled), #add_person_btn')) {
|
||||||
createRipple(e, e.target.closest('.option, .activity, .person, .navbar-item, sm-button'))
|
createRipple(e, e.target.closest('.option, .activity, .person, .navbar-item, sm-button, .action:not(:disabled), #add_person_btn'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -2563,6 +2563,10 @@
|
|||||||
function finishOnBoarding() {
|
function finishOnBoarding() {
|
||||||
onBoardingPanel.classList.add('hide')
|
onBoardingPanel.classList.add('hide')
|
||||||
focusIllu.classList.add('hide')
|
focusIllu.classList.add('hide')
|
||||||
|
setTimeout(() => {
|
||||||
|
onBoardingPanel.setAttribute('style', 'transform: none')
|
||||||
|
focusIllu.setAttribute('style', 'transform: none')
|
||||||
|
}, 300);
|
||||||
currentFeatureIndex = 0
|
currentFeatureIndex = 0
|
||||||
}
|
}
|
||||||
function nextTutorial() {
|
function nextTutorial() {
|
||||||
@ -2575,7 +2579,7 @@
|
|||||||
if (currentFeatureIndex === onBoarding.length - 1 && index > 0) {
|
if (currentFeatureIndex === onBoarding.length - 1 && index > 0) {
|
||||||
finishOnBoarding()
|
finishOnBoarding()
|
||||||
}
|
}
|
||||||
index = (nextTutButton.textContent === 'Got it') ? 0 : Math.min(Math.max(index + currentFeatureIndex, 0), onBoarding.length - 1)
|
index = (nextTutButton.textContent === 'Got it' && index > 0) ? 0 : Math.min(Math.max(index + currentFeatureIndex, 0), onBoarding.length - 1)
|
||||||
if (index === 0){
|
if (index === 0){
|
||||||
prevTutButton.classList.add('hide')
|
prevTutButton.classList.add('hide')
|
||||||
focusIllu.classList.add('hide')
|
focusIllu.classList.add('hide')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user