Skip to content

Commit

Permalink
fix(apcd-cms): add+load css not in core-styles v2 ⏸️ (#141)
Browse files Browse the repository at this point in the history
@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
wesleyboar committed Jun 21, 2023
1 parent 59d3e00 commit 4bc7508
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
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 apcd-cms/src/taccsite_custom/apcd-cms/templates/assets_custom.html
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>

0 comments on commit 4bc7508

Please sign in to comment.