Skip to content

Commit 2c27005

Browse files
authored
Merge pull request #132 from OpenSourceOrg/add/donation-widget-license-pages-main
Adjust Single License Page Content Width - Main
2 parents 49db337 + 1f5a21c commit 2c27005

File tree

8 files changed

+61
-31
lines changed

8 files changed

+61
-31
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ bh_unicode_properties.cache
353353
GitHub.sublime-settings
354354

355355
### VisualStudioCode ###
356+
.vscode/
356357
.vscode/*
357358
!.vscode/settings.json
358359
!.vscode/tasks.json

themes/osi/assets/css/editor-style.css

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/css/editor-style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/scss/_5_objects.layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
.single-license & {
9393
.content--page article:not(.archive), .comments {
94-
max-width: $postMax !important;
94+
max-width: $boxedMax !important;
9595

9696
.alignwide {
9797
@extend %alignwide;

themes/osi/assets/scss/_8_overrides.templates.scss

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
// Licenses
22
.single-license {
3-
.entry-content {
4-
margin-left: auto;
5-
margin-right: auto;
6-
max-width: $postMax;
7-
flex-grow: 1;
8-
display: flex;
9-
align-items: flex-start;
10-
gap: 20px;
11-
}
12-
.page--title {
13-
margin-bottom: 18px !important;
14-
}
15-
@media only screen and (min-width: $break-medium) {
16-
.cover--header {
17-
.wp-block-cover {
18-
padding-top: $maxPadding;
19-
padding-bottom: $maxPadding;
20-
}
21-
}
22-
}
3+
.entry-content {
4+
margin-left: auto;
5+
margin-right: auto;
6+
max-width: $boxedMax;
7+
flex-grow: 1;
8+
display: flex;
9+
align-items: flex-start;
10+
row-gap: 20px;
11+
column-gap: 60px;
12+
}
13+
14+
.page--title {
15+
margin-bottom: 18px !important;
16+
}
17+
18+
.cover--header {
19+
.wp-block-cover {
20+
left: 50%;
21+
right: 50%;
22+
margin-left: -50vw!important;
23+
margin-right: unset!important;
24+
width: 100vw!important;
25+
}
26+
}
27+
28+
@media only screen and (min-width: $break-medium) {
29+
.cover--header {
30+
.wp-block-cover {
31+
padding-top: $maxPadding;
32+
padding-bottom: $maxPadding;
33+
}
34+
}
35+
}
2336
}
2437

2538
.license-steward {

themes/osi/style.css

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/template-parts/header-license.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim">
33
<div class="wp-block-cover__inner-container">
44
<div class="wp-block-columns">
5-
<div class="wp-block-column" style="flex-basis: 80%">
5+
<div class="wp-block-column" style="flex-basis: 70%">
66
<span class="pill-taxonomy">
77
<?php
88
/**
@@ -77,7 +77,7 @@
7777
</div>
7878
<?php endif; ?>
7979
</div>
80-
<div class="wp-block-column" style="flex-basis: 20%; text-align: center;">
80+
<div class="wp-block-column" style="flex-basis: 30%; text-align: center;">
8181
<img width="200" src="/wp-content/themes/osi/assets/img/osi-badge-light.svg" alt="<?php esc_html_e( 'Open Source Initiative Approved License', 'osi' ); ?>">
8282
</div>
8383
</div>

0 commit comments

Comments
 (0)