-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: des-2737 finish app test page markup & styles (#1208)
* Fix/des 2730 adjust app page styles (#1206) * fix: des-2730 app-card spacing * fix: des-2730 app-card repo italic * fix: des-2730 version-list spacing * fix: des-2730 improve heading visual hierarchy * chore: des-2730 do not load app-card.css globally Because #1199 allows loading it via template. * chore: des-2730 establish s-version-list markup * fix: des-2730 s-version-list neglects html case I just copied this before, but forgot to update it. * fix: des-2730 s-version-list lost padding When button/a was in a `<p>`, the padding came from Bootstrap. But now button/a is not in a `<p>`, so padding must be added. * feat: des-2730 o-app-grid * feat: des-2730 s-app-page overwrite bootstrap grid * feat: des-2730 app-page.css load app-grid.css * Fix/des 2731 integrate plugins and styles (#1205) * fix: des-2731 util class not quick inline styles * fix: des-2731 version list inline styles + html * refactor: des-2731 o-app-grid not u-app-card-grid * fix: des-2735 app page not loading app page css (#1210) * refactor: des-2736 better integrate styles into cms (#1209) * refactor: des-2736 …version-list→…app-version-list * fix: des-2735 app page not loading app page css * refactor: des-2737 move plugin styles → django app - move plugin styles into appropriate django app - load app styles only once per page * fix: des-2737 fix incomplete rename * refactor: des-2737 simplify a too-complex selector * fix: des-2737 support new icons * refactor: des-2737 load app css globally (#1213)
- Loading branch information
1 parent
6a15778
commit db25814
Showing
10 changed files
with
81 additions
and
46 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
designsafe/apps/workspace/templates/designsafe/apps/workspace/app_card.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
designsafe/apps/workspace/templates/designsafe/apps/workspace/app_listing_plugin.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
designsafe/apps/workspace/templates/designsafe/apps/workspace/app_variant_plugin.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
<section style="background-color: #f4f4f4; padding: 25px;"> | ||
<h3>Select a Version</h3> | ||
<section class="s-app-version-list"> | ||
<h2>Select a Version</h2> | ||
{% for variant in listing %} | ||
<article> | ||
<div style="display:flex; align-items: center; justify-content: space-between;"> | ||
<h4>{{variant.label}}</h4> | ||
<a href="{{variant.href}}"><button class="btn btn-success">Get Started</button></a> | ||
</div> | ||
<h3>{{variant.label}}</h3> | ||
<a class="btn btn-success" href="{{variant.href}}">Get Started</a> | ||
<p>{{variant.description}}</p> | ||
{% if listing.count > forloop.counter %} | ||
<hr /> | ||
{% endif %} | ||
</article> | ||
{% endfor %} | ||
</section> |
2 changes: 1 addition & 1 deletion
2
designsafe/apps/workspace/templates/designsafe/apps/workspace/related_apps_plugin.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.o-app-grid { | ||
display: grid; | ||
gap: 30px; /* mimics Bootstrap's gap */ | ||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); | ||
justify-content: flex-start; | ||
|
||
margin-bottom: 40px; | ||
} | ||
.o-app-grid > * { | ||
min-height: 230px; | ||
max-width: 350px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{% extends "cms_page.html" %} | ||
{% load cms_tags static sekizai_tags %} | ||
{% block page_class %}s-app-page{% endblock page_class %} | ||
{% addtoblock "css" %} | ||
<link href="{% static 'styles/app-page.css' %}" rel="stylesheet" /> | ||
{% endaddtoblock %} | ||
|
||
{% block styles %} | ||
{% addtoblock "css" %} | ||
<link href="{% static 'styles/app-page.css' %}" rel="stylesheet" /> | ||
{% endaddtoblock %} | ||
{% endblock %} |