Skip to content

Commit

Permalink
feat: CMD-143 deprecate most cms doc classes (#355)
Browse files Browse the repository at this point in the history
I combined styles that are still used into `s-guide-doc.css`.

I deprecated the remaining classes.

Clients will have redundant stlyes on guide docs until they stop using:
- s-document
- s-inline-dl
- u-nested-text-content

The following class is still used:
- s-guide-doc
  • Loading branch information
wesleyboar authored Jul 24, 2024
1 parent 7af5513 commit c9795f5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/lib/_imports/core-styles.docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,3 @@
@import url("./components/c-card.css");
@import url("./components/c-card--docs.css");
@import url("./components/tacc-docs.css");

/* TRUMPS */
/* These styles from retired Core-CMS doc pages might be useful */
/* ./trumps/s-document.css */
/* ./trumps/s-guide-doc.css */
/* ./trumps/s-inline-dl.css */
/* ./trumps/u-nested-text-content.css */
2 changes: 1 addition & 1 deletion src/lib/_imports/trumps/s-document.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Document
(DEPRECATED) Document
Styles for elements within a document page or section
Expand Down
24 changes: 24 additions & 0 deletions src/lib/_imports/trumps/s-guide-doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,30 @@ Styleguide Trumps.Scopes.GuideDoc
text-align: center;
}

/* ELEMENTS: Description List */

.s-guide-doc dt {
display: block;
float: left;

/* Remove space between <dt> and <dd> (from our styles) */
/* SEE: ../elments/html-elements.html */
margin-bottom: 0;

font-weight: var(--bold);
}
.s-guide-doc dt::after {
content: ':';

margin-inline-end: 0.25em;
}
.s-guide-doc dd {
clear: right;

/* Remove space between <dd>'s (from Bootstrap) */
margin-bottom: 0;
}




Expand Down
2 changes: 1 addition & 1 deletion src/lib/_imports/trumps/s-inline-dl.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
"Inline" Description List
(DEPRECATED) "Inline" Description List
Of `<dl>` (description lists), make terms in-line with descritpions.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/_imports/trumps/u-nested-text-content.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Nested Text Content
(DEPRECATED) Nested Text Content
Any content that should be nested like a list (`<ol>`, `<ul>`) would be.
Expand Down

0 comments on commit c9795f5

Please sign in to comment.