File tree Expand file tree Collapse file tree 1 file changed +31
-22
lines changed Expand file tree Collapse file tree 1 file changed +31
-22
lines changed Original file line number Diff line number Diff line change 8181
8282.content-inner h2 {
8383 font-size : 1.6em ;
84- padding -top: 1em ;
84+ margin -top: 1em ;
8585 margin-bottom : 0.5em ;
8686}
8787
9090 margin : 1em 0 0.5em ;
9191}
9292
93- : is (.page-module , .page-extra ) .content-inner # top-content {
94- & > h2 .section-heading {
95- font-size : 1.75rem ;
96- padding-top : 0 ;
97- margin-top : 1.75em ;
98- }
93+ /* Apply more generous sizes and spacing to main/"top content" headings in order
94+ to differentiate between levels.
95+ Note: headings in various contexts, such as the module "Summary" section and
96+ cheatsheets, currently depend on previously-declared sizes and spacing. Here,
97+ we intend to target only headings of author content. At some point, we should
98+ probably make all heading styles more concrete/less dependent on the cascade
99+ so that more straightforward control is possible. */
99100
100- & > h3 .section-heading {
101- font-size : 1.45rem ;
102- margin-top : 1.5em ;
103- margin-bottom : 0.5em ;
104- }
101+ : is (.page-module , .page-task , .page-extra ) {
102+ : is (# top-content , # moduledoc ) {
103+ & > h2 .section-heading {
104+ font-size : 1.75rem ;
105+ margin-top : 1.75em ;
106+ }
105107
106- & > : is ( h4 , h5 , h6 ) {
107- font-size : 1.15 rem ;
108- margin-top : 1.25 em ;
109- margin-bottom : 0.5em ;
110- }
108+ & > h3 . section-heading {
109+ font-size : 1.45 rem ;
110+ margin-top : 1.5 em ;
111+ margin-bottom : 0.5em ;
112+ }
111113
112- & > : is (h5 , h6 ) {
113- font-weight : normal;
114- }
114+ & > : is (h4 , h5 , h6 ) {
115+ font-size : 1.15rem ;
116+ margin-top : 1.25em ;
117+ margin-bottom : 0.5em ;
118+ }
115119
116- & > h6 {
117- font-size : 1rem ;
120+ & > : is (h5 , h6 ) {
121+ font-weight : normal;
122+ }
123+
124+ & > h6 {
125+ font-size : 1rem ;
126+ }
118127 }
119128}
120129
You can’t perform that action at this time.
0 commit comments