This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mobile-login__or-decor"> | |
<span>или</span> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.class { | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
pointer-events: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
list-style: none; /* Remove default bullets */ | |
} | |
ul li::before { | |
content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */ | |
color: red; /* Change the color */ | |
font-weight: bold; /* If you want it to be bold */ | |
display: inline-block; /* Needed to add space between the bullet and the text */ | |
width: 1em; /* Also needed for space (tweak if needed) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.some__tab').click(function (e) { | |
e.preventDefault(); | |
$('.some__tab').removeClass('some__tab--active'); | |
$('.some__tab-content').removeClass('some__tab-content--active'); | |
var href = $(this).attr('href'); | |
$(this).addClass('some__tab--active'); | |
$(href).addClass('some__tab-content--active'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://fossheim.io/writing/posts/css-text-gradient/ | |
.gradient-text { | |
/* Fallback: Set a background color. */ | |
background-color: red; | |
/* Create the gradient. */ | |
background-image: linear-gradient(45deg, #f3ec78, #af4261); | |
/* Set the background size and repeat properties. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the theme toggle input | |
const currentTheme = localStorage.getItem("theme");// If the current local storage item can be found | |
// Function that will switch the theme based on the if the theme toggle is checked or not | |
function switchTheme() { | |
if (document.documentElement.getAttribute("data-theme") === "dark") { | |
document.documentElement.setAttribute("data-theme", "light"); | |
// Set the user's theme preference to dark | |
localStorage.setItem("theme", "light"); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
} | |
@media (prefers-reduced-motion: no-preference) { | |
:root { | |
scroll-behavior: smooth; | |
} | |
} | |
html { | |
-webkit-box-sizing: border-box; |
OlderNewer