Skip to content

Commit 3877f8b

Browse files
committed
Merge branch 'feature-new-buttons' into devel
2 parents 2e2fbb1 + b3e48c2 commit 3877f8b

File tree

6 files changed

+69
-7
lines changed

6 files changed

+69
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Module discopower: Add style rules and logos for the buttons of the IdPs:
1111
- OpenAIRE
1212
- OpenMinTeD
13+
- QQ
14+
- WeChat
1315
- Add info about compatiblity in README.
1416
- Enable/disable cookie banner functionality via setting in config file.
1517

1618
### Changed
1719
- Update instructions on module config file usage.
20+
- Update style of Google login button.
1821

1922
## [v2.1.0](https://github.com/rciam/simplesamlphp-module-themevanilla/compare/v2.0.0...v2.1.0) - 2018-10-18
2023

www/resources/images/google.svg

Lines changed: 1 addition & 5 deletions
Loading

www/resources/images/qq.svg

Lines changed: 22 additions & 0 deletions
Loading

www/resources/images/wechat.svg

Lines changed: 1 addition & 0 deletions
Loading

www/resources/sass/_colors.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ $table-border-color: transparent;
2222
$orcid: #a7cc46;
2323
$facebook: #3d5a96;
2424
$linkedin: #1178b3;
25-
$google: #da4b3e;
25+
$google: #4285f4;
26+
$google-font: #757575;
2627
$elixir: #ff7a03;
2728
$igtf: #2b2a29;
2829
$dariah-text: #414b7e;
@@ -37,4 +38,6 @@ $egi-cyan: #a2c5df;
3738
$openaire-lightblue: #4686e6;
3839
$openaire-blue: #39378d;
3940
$openminted: #02bab4;
41+
$wechat: #2dc101;
42+
$qq: #4292FF;
4043

www/resources/sass/_idps_buttons.scss

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,33 @@
2626
padding-bottom: 5px;
2727
}
2828
&.google {
29+
background-color: white;
30+
border-color: $google;
31+
color: $google-font;
32+
font: 500 14px 'Roboto', sans-serif;
33+
}
34+
&.google-dark {
35+
padding-bottom: 10px;
2936
background-color: $google;
30-
border: 1px solid $google;
37+
border-color: $google;
38+
color: white;
39+
font: 500 14px 'Roboto', sans-serif;
40+
letter-spacing: normal;
41+
span {
42+
display: inline-block;
43+
line-height: 20px;
44+
position: relative;
45+
top: 2px;
46+
}
47+
img {
48+
background: white;
49+
height: 34px;
50+
padding: 8px;
51+
margin-right: 24px;
52+
position: absolute;
53+
left: 1px;
54+
top: 1px;
55+
}
3156
}
3257
&.orcid {
3358
color: darken($orcid, 10%);
@@ -102,4 +127,16 @@
102127
margin: 10px 0;
103128
}
104129
}
130+
&.wechat {
131+
background-color: $white;
132+
border: $wechat 1px solid;
133+
color: $wechat;
134+
font-weight: bold;
135+
&:hover {
136+
color: darken($wechat, 10%);
137+
}
138+
}
139+
&.qq {
140+
background-color: $qq;
141+
}
105142
}

0 commit comments

Comments
 (0)