mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 15:17:33 -06:00
Rename sponsor div class names
This commit is contained in:
+13
-9
@@ -541,42 +541,42 @@ div.populararguments div.dropdown-menu {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
max-height: 200px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
@media (min-height: 700px) {
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
max-height: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-height: 1000px) {
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
max-height: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-height: 1200px) {
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
max-height: 700px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-height: 1800px) {
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
max-height: 1200px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.sponsor-root {
|
||||
.sponsor-content-root {
|
||||
font-size: 60%;
|
||||
}
|
||||
}
|
||||
|
||||
.sponsor-block:not(:first-child) {
|
||||
.sponsor-item-block:not(:first-child) {
|
||||
margin-top: 6em;
|
||||
}
|
||||
|
||||
@@ -588,15 +588,19 @@ div.populararguments div.dropdown-menu {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sponsor-title {
|
||||
.sponsor-item-title {
|
||||
font-size: 200%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sponsor-title img {
|
||||
.sponsor-item-title img {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.sponsors-level-selectors {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.sponsor {
|
||||
flex-grow: 1;
|
||||
margin: 2px;
|
||||
|
||||
+8
-8
@@ -74,12 +74,12 @@
|
||||
span(aria-hidden="true")
|
||||
| ×
|
||||
.modal-body
|
||||
div.d-flex.justify-content-center.mt-3
|
||||
div.sponsors-level-selectors.d-flex.justify-content-center.mt-3
|
||||
div.btn-group.btn-group
|
||||
each level, index in sponsors.levels
|
||||
button.btn.btn-primary(onclick='document.getElementById("sponsor_hop_' + index + '").scrollIntoView();')=level.name
|
||||
button.btn.btn-primary(onclick='document.getElementById("sponsor_hop_' + index + '").scrollIntoView({behavior:"smooth"});')=level.name
|
||||
|
||||
.sponsor-root.mt-6
|
||||
.sponsor-content-root.mt-6
|
||||
.sponsor-blurb
|
||||
| Compiler Explorer is proud to be sponsored by a number of individuals and companies. We thank them for
|
||||
| making this website free for all. If you'd like to help, consider becoming a
|
||||
@@ -96,19 +96,19 @@
|
||||
| for corporate sponsorship.
|
||||
.mt-6
|
||||
each level, index in sponsors.levels
|
||||
.sponsor-block(class=level.class id="sponsor_hop_" + index)
|
||||
h2.sponsor-name= level.name
|
||||
div.sponsor-description= level.description
|
||||
.sponsor-item-block(class=level.class id="sponsor_hop_" + index)
|
||||
h2.sponsor-item-name= level.name
|
||||
div.sponsor-item-description= level.description
|
||||
.sponsors
|
||||
each sponsor in level.sponsors
|
||||
.sponsor
|
||||
button.btn-block.btn-secondary(title=sponsor.title onclick=sponsor.onclick disabled=!sponsor.url)
|
||||
span.sponsor-title
|
||||
span.sponsor-item-title
|
||||
if sponsor.img
|
||||
img(src=sponsor.img)
|
||||
= sponsor.name
|
||||
if sponsor.description
|
||||
.sponsor-description
|
||||
.sponsor-item-description
|
||||
= sponsor.description
|
||||
.modal-footer
|
||||
button.btn.btn-light(type="button" data-dismiss="modal") Close
|
||||
|
||||
Reference in New Issue
Block a user