-
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.
chore: tup-636 c-card--image - less templates (#257)
* adding image cards to demo * adds in all section colors. adds in styles for demo * Remove duplicate code from c-card--from-tup-cms.css pertaining to card--images. Removed _c-card--one-image.hbs file. * resolved conflicts * consistent 5-line space between different contexts https://confluence.tacc.utexas.edu/x/SQALBg#UICSSStyleGuideWhitespace&Organization-MeaningfulWhitespace * added in build dist files - just in case * fix: remove import of deleted file * style: restore final NL in file (to reduce diff) * style: remvoe excess whitespace * creating more files to make card--images dynamic * chore: tup-636 c-card--image w/ less templates * feat: tup-636 c-card--image demo warning --------- Co-authored-by: Tomas Gonzalez <[email protected]> Co-authored-by: Tomas Gonzalez <[email protected]>
- Loading branch information
1 parent
b72046d
commit dddb8c4
Showing
13 changed files
with
65 additions
and
107 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-bottom-plain.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-bottom-transparent.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-left-plain.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-left-transparent.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-right-plain.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-right-transparent.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-top-plain.hbs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/lib/_imports/components/c-card/_c-card--image-top-staff-plain.hbs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/lib/_imports/components/c-card/_c-card--image-top-staff-transparent.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/lib/_imports/components/c-card/_c-card--image-top-transparent.hbs
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
<article class="c-card c-card--{{variant}} c-card--image-{{position}}"> | ||
{{#if is-staff}} | ||
|
||
<h4><a href="#">Bender Rodríguez</a></h4> | ||
<p>Planet Express Worker</p> | ||
<p>Anti-hero in Futurama</p> | ||
<img class="img-fluid" width="234px" height="293px" | ||
src="https://cohro.ukzn.ac.za/wp-content/uploads/2019/02/profile-placeholder.png" | ||
title="University of Texas at Austin" class="img-fluid" | ||
/> | ||
|
||
{{else}} | ||
|
||
<h3>Card - Image {{position}}</h3> | ||
<p>{{> @text-of-one-paragraph-short }}</p> | ||
{{#if tall}} | ||
{{> @message tag="p" type="warning" scope="inline" content="Narrow images might not fill space available. Just use a wider image." }} | ||
{{/if}} | ||
<img src="{{> @img-url wide=wide tall=tall medium=true }}" /> | ||
|
||
{{/if}} | ||
</article> |
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