Skip to content

Commit

Permalink
Replace bootstrap-social with self-written CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Sep 14, 2024
1 parent 6962198 commit a49fdde
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 158 deletions.
38 changes: 38 additions & 0 deletions sipa/static/css/agdsn-bootstrap-social.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.btn-social-icon {
height: 36px;
width: 36px;
padding: 0;
background-color: var(--btn-social-bg-color);
color: white;
border: none;
}
.btn-social-icon > * {
font-size: 1.6em;
}
.btn-social-icon > *::before {
vertical-align: -1.5pt;
}

.btn-social-icon:focus,.btn-social-icon:hover,.btn-social-icon:active {
color: #fff;
background-color: color-mix(in hsl, black 16%, var(--btn-social-bg-color));
border-color: rgba(0, 0, 0, 0.2);
}
.btn-social-icon:active:hover,.btn-social-icon:active:focus {
color: #fff;
background-color: color-mix(in hsl, black, var(--btn-social-bg-color) 20%);
border-color: rgba(0, 0, 0, 0.2);
}

.btn-mastodon {
--btn-social-bg-color: #563acc;
}
.btn-twitter {
--btn-social-bg-color: #55acee;
}
.btn-instagram {
--btn-social-bg-color: #ff0069;
}
.btn-github {
--btn-social-bg-color: #444444;
}
Loading

0 comments on commit a49fdde

Please sign in to comment.