Skip to content

Make donate page prettier #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</button>
<a class="navbar-brand" href="{{ site.baseurl }}/">
<div class="header-logo">
<img height="42" style="top: 6px; position: relative;" src="/resources/img/scala-center-logo-top@2x.png" alt="Scala Center">
<img height="42" style="top: 14px; position: relative;" src="/resources/img/scala-center-logo-top@2x.png" alt="Scala Center">
</div>
</a>
</div>
Expand Down
6 changes: 2 additions & 4 deletions donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ layout: contact

## Support the Scala Center!

<a target="_blank" href="https://donate.stripe.com/fZefZYfMC5Y0cXS9AD">Make a one-time donation to the Scala Center</a>.
<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>

Email us at [scala.center@epfl.ch](mailto:scala.center@epfl.ch) if you'd like to turn your
one-time donation into a monthly or yearly recurring donation.

(For companies, please consider [the corporate membership options](./corporate-membership.html).)
one-time donation into a monthly or yearly recurring donation. (For companies, please consider [the corporate membership options](./corporate-membership.html).)

### Why contribute?

Expand Down
2 changes: 1 addition & 1 deletion resources/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ div.search {
margin-bottom: 20px;
}

a {
a:not(.btn) {
text-decoration: underline;
}

Expand Down
4 changes: 4 additions & 0 deletions resources/css/sass/bootstrap/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ a.btn {
// line-height: ensure even-numbered height of button next to large input
@include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large);
}
.btn-md {
// line-height: ensure even-numbered height of button next to base input
@include button-size($padding-large-vertical, $padding-medium-horizontal, $font-size-medium, $line-height-medium, $btn-border-radius-base);
}
.btn-sm {
// line-height: ensure proper height of button next to small input
@include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
Expand Down
3 changes: 1 addition & 2 deletions resources/css/sass/bootstrap/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@

.navbar-brand {
float: left;
padding: $navbar-padding-vertical $navbar-padding-horizontal;
padding-top: 14px;
padding: 20px $navbar-padding-horizontal;
font-size: $font-size-large;
line-height: $line-height-computed;
height: $navbar-height;
Expand Down
4 changes: 4 additions & 0 deletions resources/css/sass/bootstrap/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ $font-family-base: $font-family-sans-serif !default;

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

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

$padding-medium-horizontal: 20px !default;

$padding-small-vertical: 5px !default;
$padding-small-horizontal: 10px !default;

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

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

$border-radius-base: 2px !default;
Expand Down