Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode #378

Merged
merged 32 commits into from Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
87ec66f
Add dark mode classes
pedromvpg Jul 15, 2020
4b309dd
Add dark mode toggle interaction
pedromvpg Jul 15, 2020
d4b5460
Add dark mode toggle to nav
pedromvpg Jul 15, 2020
2d3b27a
Add coockie script and detection
pedromvpg Jul 21, 2020
dc9c213
Update screen images and add darkmode imgs
pedromvpg Jul 21, 2020
d08f579
Higher resolution screen images
pedromvpg Jul 22, 2020
b833715
Fix colors on mobile
pedromvpg Jul 22, 2020
b2a1d6c
Fix screen margin-top on mobile
pedromvpg Jul 22, 2020
883f7d4
Color adjustments on main CTAs
pedromvpg Jul 22, 2020
229a120
Add filters to images to invert on darkmode
pedromvpg Jul 22, 2020
affe67d
Darker grey background panels
pedromvpg Jul 22, 2020
f08cb43
Invert features svgs
pedromvpg Jul 22, 2020
675337f
Missing seperator
pedromvpg Jul 22, 2020
98d288d
Refine screen image
pedromvpg Jul 26, 2020
1e6d063
Remove language image paths
pedromvpg Jul 26, 2020
c4c6d99
Refine screen images
pedromvpg Jul 26, 2020
12d943a
Replace invert filter with contrast
pedromvpg Jul 26, 2020
0cd4e03
Reduce image size
pedromvpg Jul 26, 2020
dea97bd
Adjust colors on dark mode
pedromvpg Jul 26, 2020
5a19ba3
Correct quotes
pedromvpg Jul 26, 2020
7bda4cd
Set cookie
pedromvpg Jul 26, 2020
456d3b3
Add condition to switch to dark mode based on system settings
pedromvpg Jul 27, 2020
d26b2c0
Correct color of input markets currentcy selection
pedromvpg Jul 27, 2020
6044d53
Add FAQ toogle close open icons
pedromvpg Jul 27, 2020
1bfe17b
Scale image
pedromvpg Jul 27, 2020
c54df5a
Add icon to toggle
pedromvpg Jul 28, 2020
6721f3f
Correct logic for handeling cookie and os setting
pedromvpg Jul 28, 2020
e21d503
Change img switch on darkmode from content to bg-img for wider support
pedromvpg Jul 28, 2020
cdf9168
Smooth dark mode transition
pedromvpg Jul 28, 2020
b8e5a47
Update _layouts/default.html
pedromvpg Jul 30, 2020
f89f9c6
Update _layouts/default.html
pedromvpg Jul 30, 2020
dc03800
Update _layouts/default.html
pedromvpg Jul 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions _layouts/page_home.html
Expand Up @@ -148,7 +148,7 @@ <h1 class="intro text-monospace display-1" style="margin-left: -.3rem;">{{ item.

</div>
<div class="col-md-12 order-md-1 text-md-left homepage-hero">
<img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" style="width: 100%; display: block;" src="{% lingual_link image %}images/screens/bisq_hero_light.png" loading="lazy">
<img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" style="width: 100%; display: block;" src="/images/screens/bisq_hero_light.png" loading="lazy">
</div>
</div>

Expand Down Expand Up @@ -243,10 +243,10 @@ <h2>{{ item.hGetStarted }}</h2>
</ol>
</div>
<div class="col-12 col-md-7 offset-0 offset-md-1">
<div class="getting-started-img step-image step-image-1 d-block"><img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" src="{% lingual_link image %}images/screens/step1_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-2 d-none" ><img class="img-fluid shadow-lg" alt="Open Trades view inside Bisq" src="{% lingual_link image %}images/screens/step2_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-3 d-none" ><img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" src="{% lingual_link image %}images/screens/step3_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-4 d-none" ><img class="img-fluid shadow-lg" alt="Open Trades view inside Bisq" src="{% lingual_link image %}images/screens/step4_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-1 d-block"><img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" src="/images/screens/step1_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-2 d-none" ><img class="img-fluid shadow-lg" alt="Open Trades view inside Bisq" src="/images/screens/step2_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-3 d-none" ><img class="img-fluid shadow-lg" alt="Offer Book view inside Bisq" src="/images/screens/step3_light.png" loading="lazy"></div>
<div class="getting-started-img step-image step-image-4 d-none" ><img class="img-fluid shadow-lg" alt="Open Trades view inside Bisq" src="/images/screens/step4_light.png" loading="lazy"></div>

</div>
</div>
Expand Down
38 changes: 27 additions & 11 deletions css/styles.scss
Expand Up @@ -625,7 +625,7 @@ nav .mobile-language-selector button {
}

.getting-started-img {
width: 210%
width: 180%
}

.features-pic {
Expand Down Expand Up @@ -1323,7 +1323,7 @@ getting started page


body.dark-mode, body.dark-mode .dropdown-menu {
background: #0a0a0a;
background: #101010;
color: #f3f3f3;
}

Expand Down Expand Up @@ -1373,12 +1373,14 @@ body.dark-mode .more-info-desktop .dropdown-menu .dropdown-item {
}

body.dark-mode .navbar {
border-bottom: #222 1px solid;
background-color: #000 !important;
border-bottom: #101010 1px solid;
background-color: #101010 !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-item .nav-link {
border-bottom: #222 1px solid;
border-bottom: #101010 1px solid;
padding-left: 0;
padding-right: 0;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
Expand All @@ -1389,8 +1391,9 @@ body.dark-mode .navbar-light .navbar-nav .nav-item.current .nav-link {
color: #fff;
}

body.dark-mode .navbar-light .navbar-nav .nav-item.current .nav-link, body.dark-mode .navbar-light .navbar-nav .nav-item:hover .nav-link {
border-bottom: #25B135 1px solid;
body.dark-mode .navbar-light .navbar-nav .nav-item.current .nav-link,
body.dark-mode .navbar-light .navbar-nav .nav-item:hover .nav-link {
border-bottom: #6f6f6f 1px solid;
}

body.dark-mode .grey {
Expand Down Expand Up @@ -1430,7 +1433,12 @@ body.dark-mode #tables tbody tr {
}

body.dark-mode .split-first {
background: #0c0c0c;
background: #101010;
}

body.dark-mode .split-last {
-webkit-filter: brightness(0.8);
filter: brightness(0.8);
}

body.dark-mode .conclusion {
Expand All @@ -1457,12 +1465,16 @@ body.dark-mode .btn-secondary:hover {



body.dark-mode .community-links li img,
body.dark-mode .badge-img {
body.dark-mode .community-links li img {
-webkit-filter: invert(1);
filter: invert(1);
}

body.dark-mode .badge-img {
-webkit-filter: contrast(0.8);
filter: contrast(0.8);
}


body.dark-mode #getting-started .admonition.grey {
background-color: #151515;
Expand All @@ -1481,6 +1493,10 @@ body.dark-mode .chart-stat-container .stat-chart, body.dark-mode #container {
background: #1d1d1d;
}

body.dark-mode .plain-stat-container .stat-label {
color: #888888;
}


body.dark-mode rect.highcharts-plot-background, body.dark-mode svg.highcharts-root rect{
fill: #1d1d1d;
Expand Down Expand Up @@ -1522,7 +1538,7 @@ body.dark-mode .chosen-container-single .chosen-search input[type="text"] {

@media (max-width: 991px) {
body.dark-mode ul.navbar-nav.ml-auto {
background: #000;
background: #101010;
}
body.dark-mode .navbar-light .navbar-nav .nav-item .nav-link {
border-bottom: none;
Expand Down
Binary file modified images/screens/bisq_hero_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/bisq_hero_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step2_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step2_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step3_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step3_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step4_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/screens/step4_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.