Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apps/Info.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<link rel="stylesheet" href="./table.css" />
<link rel="stylesheet" href="./info.css" />
<link rel="shortcut icon" type="image/x-icon" href="/apps/landing/favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>

<body>
Expand Down Expand Up @@ -65,6 +66,21 @@
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="./signup/signup.html"> <i class="fas fa-user-plus"></i> Signup</a>
</li>

<!-- Darkmode Button as List Item -->
<li class="nav-item link">
<button onclick="darkMode()" class="darkmode-btn">
<i class="fas fa-moon"></i> Darkmode
</button>
</li>
</ul>

<script>
function darkMode() {
var element = document.body;
element.classList.toggle("dark-mode");
}
</script>
</ul>
</div>
</div>
Expand Down
94 changes: 94 additions & 0 deletions apps/dev-workbench/workbench.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,97 @@
margin-left: 0 !important;
}
}

/* Dark Mode Options */

.darkmode-btn{
background-color: transparent;
box-shadow: inset 0 0 0 2px rgba(144, 144, 144, 0.25);
color: #4d5968 !important;
letter-spacing: 0.05em;
text-transform: uppercase;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
border-radius: 5px;
border: 0;
cursor: pointer;
display: inline-block;
font-size: 0.8em;
font-weight: 700;
line-height: 3.35em;
padding: 0 2em;
text-align: center;
text-decoration: none;
white-space: nowrap;


}


/* Dark mode hover effect */
.dark-mode .darkmode-btn:hover {
background-color: transparent !important; /* No background in dark mode hover */
color: #ccc; /* Optional: Light gray text on hover in dark mode */
border-color: #ccc; /* Optional: Adjust border color in dark mode */
transform: scale(1.05); /* Keep the hover scaling effect */
box-shadow: none !important; /* Ensure no shadow in dark mode */
}

/* Dark Mode Styles */
.dark-mode {
background-color: black;
}

.dark-mode ul.stepper li a .circle {
display: inline-block;
width: 1.75rem;
height: 1.75rem;
margin-right: .5rem;
line-height: 1.7rem;
color: #fff !important;
text-align: center;
background: grey !important;
border-radius: 50%;
}

.dark-mode .stepper-vertical li:not(:last-child):after {
background-color: grey !important;
}

.dark-mode .step-content.grey.grey.lighten-3{
color: white !important;
background-color: #212529 !important;
}


.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode span,
.dark-mode a{
color: white !important; /* Force text to be white */
}


@media screen and (max-width: 736px) {
.dark-mode .posts .post .image {
width: 30%;
min-width: 6em;
}

.dark-mode .posts .post .content {
width: 70%;
}
}

@media screen and (max-width: 480px) {
.dark-mode .posts .post .image {
margin-right: 1.5em;
}
}
17 changes: 17 additions & 0 deletions apps/dev-workbench/workbench.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@
aria-expanded="false"
>Options</a
>

<!-- Darkmode Button as List Item -->
<li class="nav-item link">
<button onclick="darkMode()" class="darkmode-btn">
<i class="fas fa-moon"></i> Darkmode
</button>
</li>


<script>
function darkMode() {
var element = document.body;
element.classList.toggle("dark-mode");
}
</script>
</ul>

<div
style="margin-left: -5em;"
class="dropdown-menu dropdown-primary"
Expand Down
78 changes: 78 additions & 0 deletions apps/info.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,81 @@ footer{
margin-bottom: 0;
}


/* Dark Mode Option: */
.darkmode-btn{
background-color: transparent;
box-shadow: inset 0 0 0 2px rgba(144, 144, 144, 0.25);
color: #4d5968 !important;
letter-spacing: 0.05em;
text-transform: uppercase;
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
border-radius: 5px;
border: 0;
cursor: pointer;
display: inline-block;
font-size: 0.8em;
font-weight: 700;
line-height: 3.35em;
padding: 0 2em;
text-align: center;
text-decoration: none;
white-space: nowrap;


}

/* Dark mode hover effect */
.dark-mode .darkmode-btn:hover {
background-color: transparent !important; /* No background in dark mode hover */
color: #ccc; /* Optional: Light gray text on hover in dark mode */
border-color: #ccc; /* Optional: Adjust border color in dark mode */
transform: scale(1.05); /* Keep the hover scaling effect */
box-shadow: none !important; /* Ensure no shadow in dark mode */
}


.dark-mode .nav-item.active.link{
color:black !important;
}


/* Dark Mode Styles */
.dark-mode {
background-color: black;
color: white;
}


.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode p,
.dark-mode span{
color: white !important; /* Force text to be white */
}


@media screen and (max-width: 736px) {
.dark-mode .posts .post .image {
width: 30%;
min-width: 6em;
}

.dark-mode .posts .post .content {
width: 70%;
}
}

@media screen and (max-width: 480px) {
.dark-mode .posts .post .image {
margin-right: 1.5em;
}
}
20 changes: 16 additions & 4 deletions apps/landing/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- common styling -->
<link rel='stylesheet' type='text/css' media='all' href='../common.css'/>
<link rel="shortcut icon" type="image/x-icon" href="favicon.png">

</head>
<body>

Expand Down Expand Up @@ -49,6 +49,20 @@
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" target="_blank" href="https://github.com/camicroscope/caMicroscope/issues"> <i class="fas fa-comment"></i> Feedback</a>
</li>

<!-- Darkmode Button as List Item -->
<li class="nav-item link">
<button onclick="darkMode()" class="darkmode-btn">
<i class="fas fa-moon"></i> Darkmode
</button>
</li>

<script>
function darkMode() {
var element = document.body;
element.classList.toggle("dark-mode");
}
</script>
</ul>
</div>
</div>
Expand All @@ -69,8 +83,6 @@ <h1>caMicroscope</h1>
</div>

<!-- Content -->


<div role="contentinfo" class="content">
<p>caMicroscope is a tool to view, annotate, and analyze biomedical images.</p>
<a href="#" class="image fit" aria-label="Reload Home Page"><img src="./banner1.jpg" alt="" /></a>
Expand Down Expand Up @@ -130,5 +142,5 @@ <h3>Documentation</h3>
<!-- script to call a footer(layout footer in the common > utils folder) function -->
<script> insertFooterLayout(); </script>
</body>

</html>
Loading