Skip to content

Instantly share code, notes, and snippets.

View guamacherox's full-sized avatar
🎯
Focusing

Juan Marval guamacherox

🎯
Focusing
View GitHub Profile
@zshanabek
zshanabek / elementary-todo.sh
Last active May 30, 2022 12:04
things to do after installing elementary os or any debian based linux distribution (ubuntu, linux mint)
sudo apt-get update # update all repositories
# git setup
sudo apt-get install git
sudo apt-get install gitk # for GUI representation of git history
sudo apt-get install xclip # xclip is for saving shell output in clipboard
git config --global color.ui true # for colourful output in terminal
# update git per-user configuration file
git config --global user.name "Zhunisali" # write here your name and email
git config --global user.email "zshanabek@gmail.com"
@johanlef
johanlef / README.md
Last active July 7, 2024 03:24
Use CSS custom properties (--var) with bootstrap 4 (SCSS)

The file _functions-override.scss contains the custom functions to handle color conversions within sass and bootstrap.

Bootstrap does not like its sass variables set to css custom properties, e.g. var(--primary). If you use the code snippets below, you can do so, under some conditions.

In the most basic case, you should provide your color variables using the hsl format.

If you insert this using javascript, you can use the script apply-colors.jsx to let js handle the conversion from hex or rgb to hsl.

Reference the main.scss file to import the files in the correct order.

@gokulkrishh
gokulkrishh / media-query.css
Last active July 26, 2024 23:20
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */