-
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.
GH-73: Texascale: c-offset-… → o-offset-…
- Loading branch information
1 parent
1fe7529
commit 49af07d
Showing
5 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
texascale-org/static/texascale-org/css/src/_imports/components/c-offset-content.css
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...cale-org/static/texascale-org/css/src/_imports/components/deprecated/c-offset-content.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,42 @@ | ||
/* WARNING: Deprecated. Do NOT add this to markup! */ | ||
/* NOTE: Preserve for legacy support (unless you want to edit 50+ instances) */ | ||
/* FAQ: 2019–20 used `c-offset-content`; 2021, renamed to `c-offset-content` */ | ||
/* SEE: ../../objects/c-offset-content.css */ | ||
/* | ||
Offset Content | ||
Content that should be offset from the flow of text within which it is placed. | ||
Styleguide Components.Deprecated.OffsetContent | ||
*/ | ||
|
||
[class*="c-offset-content--"] { | ||
--offset-distance: 8.5vw; /* NOTE: Value is from Texascale.org 2020 */ | ||
--buffer: 30px; /* double Bootstrap `.col` padding */ | ||
|
||
max-width: 50%; | ||
} | ||
|
||
@media only screen and (--medium-and-above) { | ||
.c-offset-content--right { | ||
float: right; | ||
margin-left: var(--buffer); | ||
} | ||
.c-offset-content--right + .c-offset-content--right { clear: right; } | ||
|
||
.c-offset-content--left { | ||
float: left; | ||
margin-right: var(--buffer); | ||
} | ||
.c-offset-content--left + .c-offset-content--left { clear: left; } | ||
} | ||
/* WARNING: Value `2400px` is from Texascale.org 2020 */ | ||
@media only screen and (--medium-and-above) and (max-width: 2400px) { | ||
/* Apply negative margin only when using offset value */ | ||
.c-offset-content--right { | ||
margin-right: calc( var(--offset-distance) * -1); | ||
} | ||
.c-offset-content--left { | ||
margin-left: calc( var(--offset-distance) * -1); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
texascale-org/static/texascale-org/css/src/_imports/objects/o-offset-content.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,5 @@ | ||
/* SEE: taccsite_cms/static/site_cms/css/src/_imports/objects/o-offset-content.css */ | ||
|
||
[class*="o-offset-content--"] { | ||
--offset-distance: 8.5vw; | ||
} |
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