-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(apcd-cms): add+load css not in core-styles v2 ⏸️ (#141)
@tacc/core-styles v2+ does not limit input field length. But APCD relies on it (the limit was built for APCD's first form.) This commit need not be in main until APCD loads Core-CMS post #569. TACC/Core-CMS#569
- Loading branch information
1 parent
59d3e00
commit 4bc7508
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
apcd-cms/src/taccsite_custom/apcd-cms/static/apcd-cms/css/site.cms.css
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,17 @@ | ||
/* Organize via ITCSS */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/IAA9Cw */ | ||
|
||
/* ELEMENTS */ | ||
|
||
/* To prevent super-long fields */ | ||
input:not( | ||
/* FAQ: These types of fields should not grow to a max */ | ||
[type=time], | ||
[type=date], | ||
[type=checkbox], | ||
[type=radio] | ||
), | ||
select, | ||
textarea { | ||
max-width: 50ch; | ||
} |
24 changes: 24 additions & 0 deletions
24
apcd-cms/src/taccsite_custom/apcd-cms/templates/assets_custom.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{# This template overwrites the original from TACC/Core-CMS #} | ||
{# NOTE: This should extend taccsite_cms via taccsite_custom, not overwrite #} | ||
{# FAQ: To extend, via app template inheritance, see TACC/Core-CMS#492 #} | ||
|
||
|
||
|
||
{# COPIED FROM CORE #} | ||
{# https://github.com/TACC/Core-CMS/blob/64a72e2/taccsite_cms/templates/assets_custom.html #} | ||
|
||
{% load staticfiles %} | ||
|
||
<!-- Custom Site Assets: Favicon. --> | ||
{% with settings.FAVICON as favicon %} | ||
<link rel="icon" href="{% static favicon.img_file_src %}" type="image/x-icon" /> | ||
{% endwith %} | ||
|
||
|
||
|
||
{# NEW CODE #} | ||
|
||
<!-- TUP CMS UI Styles --> | ||
<style> | ||
@import url("{% static 'apcd-cms/css/site.cms.css' %}"); | ||
</style> |