Skip to content

Commit c9795f5

Browse files
authored
feat: CMD-143 deprecate most cms doc classes (#355)
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
1 parent 7af5513 commit c9795f5

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

src/lib/_imports/core-styles.docs.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,3 @@
3131
@import url("./components/c-card.css");
3232
@import url("./components/c-card--docs.css");
3333
@import url("./components/tacc-docs.css");
34-
35-
/* TRUMPS */
36-
/* These styles from retired Core-CMS doc pages might be useful */
37-
/* ./trumps/s-document.css */
38-
/* ./trumps/s-guide-doc.css */
39-
/* ./trumps/s-inline-dl.css */
40-
/* ./trumps/u-nested-text-content.css */

src/lib/_imports/trumps/s-document.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Document
2+
(DEPRECATED) Document
33
44
Styles for elements within a document page or section
55

src/lib/_imports/trumps/s-guide-doc.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,30 @@ Styleguide Trumps.Scopes.GuideDoc
2121
text-align: center;
2222
}
2323

24+
/* ELEMENTS: Description List */
25+
26+
.s-guide-doc dt {
27+
display: block;
28+
float: left;
29+
30+
/* Remove space between <dt> and <dd> (from our styles) */
31+
/* SEE: ../elments/html-elements.html */
32+
margin-bottom: 0;
33+
34+
font-weight: var(--bold);
35+
}
36+
.s-guide-doc dt::after {
37+
content: ':';
38+
39+
margin-inline-end: 0.25em;
40+
}
41+
.s-guide-doc dd {
42+
clear: right;
43+
44+
/* Remove space between <dd>'s (from Bootstrap) */
45+
margin-bottom: 0;
46+
}
47+
2448

2549

2650

src/lib/_imports/trumps/s-inline-dl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
"Inline" Description List
2+
(DEPRECATED) "Inline" Description List
33
44
Of `<dl>` (description lists), make terms in-line with descritpions.
55

src/lib/_imports/trumps/u-nested-text-content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Nested Text Content
2+
(DEPRECATED) Nested Text Content
33
44
Any content that should be nested like a list (`<ol>`, `<ul>`) would be.
55

0 commit comments

Comments
 (0)