Skip to content

Commit 7b6a544

Browse files
authored
Merge pull request #306 from scala/revamp-donate
Make donate page prettier
2 parents 59fc7b6 + 1c4746c commit 7b6a544

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</button>
1111
<a class="navbar-brand" href="{{ site.baseurl }}/">
1212
<div class="header-logo">
13-
<img height="42" style="top: 6px; position: relative;" src="/resources/img/scala-center-logo-top@2x.png" alt="Scala Center">
13+
<img height="42" style="top: 14px; position: relative;" src="/resources/img/scala-center-logo-top@2x.png" alt="Scala Center">
1414
</div>
1515
</a>
1616
</div>

donate.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ layout: contact
44

55
## Support the Scala Center!
66

7-
<a target="_blank" href="https://donate.stripe.com/fZefZYfMC5Y0cXS9AD">Make a one-time donation to the Scala Center</a>.
7+
<a target="_blank" class="btn btn-default btn-md btn-block" href="https://donate.stripe.com/fZefZYfMC5Y0cXS9AD">Make a one-time donation to the Scala Center</a>
88

99
Email us at [scala.center@epfl.ch](mailto:scala.center@epfl.ch) if you'd like to turn your
10-
one-time donation into a monthly or yearly recurring donation.
11-
12-
(For companies, please consider [the corporate membership options](./corporate-membership.html).)
10+
one-time donation into a monthly or yearly recurring donation. (For companies, please consider [the corporate membership options](./corporate-membership.html).)
1311

1412
### Why contribute?
1513

resources/css/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ div.search {
13811381
margin-bottom: 20px;
13821382
}
13831383

1384-
a {
1384+
a:not(.btn) {
13851385
text-decoration: underline;
13861386
}
13871387

resources/css/sass/bootstrap/_buttons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ a.btn {
137137
// line-height: ensure even-numbered height of button next to large input
138138
@include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large);
139139
}
140+
.btn-md {
141+
// line-height: ensure even-numbered height of button next to base input
142+
@include button-size($padding-large-vertical, $padding-medium-horizontal, $font-size-medium, $line-height-medium, $btn-border-radius-base);
143+
}
140144
.btn-sm {
141145
// line-height: ensure proper height of button next to small input
142146
@include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);

resources/css/sass/bootstrap/_navbar.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@
162162

163163
.navbar-brand {
164164
float: left;
165-
padding: $navbar-padding-vertical $navbar-padding-horizontal;
166-
padding-top: 14px;
165+
padding: 20px $navbar-padding-horizontal;
167166
font-size: $font-size-large;
168167
line-height: $line-height-computed;
169168
height: $navbar-height;

resources/css/sass/bootstrap/_variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $font-family-base: $font-family-sans-serif !default;
5151

5252
$font-size-base: 14px !default;
5353
$font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
54+
$font-size-medium: ceil(($font-size-base * 1.125)) !default; // ~16px
5455
$font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
5556

5657
$font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
@@ -98,13 +99,16 @@ $padding-base-horizontal: 24px !default;
9899
$padding-large-vertical: 10px !default;
99100
$padding-large-horizontal: 16px !default;
100101

102+
$padding-medium-horizontal: 20px !default;
103+
101104
$padding-small-vertical: 5px !default;
102105
$padding-small-horizontal: 10px !default;
103106

104107
$padding-xs-vertical: 1px !default;
105108
$padding-xs-horizontal: 5px !default;
106109

107110
$line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
111+
$line-height-medium: 1.4 !default; // extra decimals for Win 8.1 Chrome
108112
$line-height-small: 1.5 !default;
109113

110114
$border-radius-base: 2px !default;

0 commit comments

Comments
 (0)