Skip to content

Commit 31987b5

Browse files
committed
Add button for github
1 parent 4499202 commit 31987b5

5 files changed

Lines changed: 18 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010

1111
- Module discopower: Add style rules and logos for the buttons of the IdPs:
12-
- Bitbucket
12+
- Bitbucket
13+
- Github
1314

1415

1516
## [v2.2.1](https://github.com/rciam/simplesamlphp-module-themevanilla/compare/v2.2.0...v2.2.1) - 2019-07-03
4.17 KB
Loading

www/resources/images/github.png

12.7 KB
Loading

www/resources/sass/_colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ $wechat: #2dc101;
4242
$qq: #4292FF;
4343
$epos: #10482A;
4444
$bitbucket: #0747a6;
45+
$github: #24292e;

www/resources/sass/_idps_buttons.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,19 @@
158158
margin-right: 0;
159159
}
160160
}
161-
161+
&.github {
162+
border-color: $github;
163+
background: $white url("../images/github.png") no-repeat center center;
164+
background-size: 55%;
165+
span {
166+
display: none;
167+
}
168+
img {
169+
visibility: hidden;
170+
}
171+
&:hover {
172+
background: $white url("../images/github-mark.png") no-repeat center center;
173+
background-size: 26px;
174+
}
175+
}
162176
}

0 commit comments

Comments
 (0)