Skip to content

Commit 5c466b7

Browse files
authored
Merge pull request #2080 from wilzbach/remove_c_a
Drop the $(C_A) Ddoc workaround merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents f939852 + f6baeb5 commit 5c466b7

File tree

5 files changed

+20
-27
lines changed

5 files changed

+20
-27
lines changed

areas-of-d-usage.dd

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,25 +254,24 @@ Macros:
254254
AREA_SECTION3=$(TC h3, area-section3, $1) $(AREA_SECTION_INLINE $+)
255255
COLON=:
256256
_= Single word inline CSS needs to be escaped _=
257-
C_A=$1:$2;
258257
EXTRA_HEADERS=$(T style,
259258
.start-icons {
260259
text-align: center;
261260
padding-bottom: 30px;
262261
padding-top: 20px;
263262
}
264263
.start-icons-el > div {
265-
$(C_A hyphens, none)
266-
$(C_A margin, 0 -1em)
264+
hyphens: none;
265+
margin: 0 -1em;
267266
text-align: center;
268267
}
269268
.start-icons-el {
270269
vertical-align: top;
271-
$(C_A display, inline-block)
270+
display: inline-block;
272271
padding-right: 5%;
273272
padding-bottom: 20px;
274273
font-size: 1.2em;
275-
$(C_A width, 100px)
274+
width: 100px;
276275
}
277276
.start-icons i {
278277
font-size: 80px;
@@ -282,7 +281,7 @@ Macros:
282281
padding-top: 1.0em;
283282
}
284283
h2 a$(COLON)hover$(COLON)$(COLON)after {
285-
$(C_A content, '' !important)
284+
content: '' !important;
286285
}
287286
@media only screen and (min-width: 50em)
288287
{
@@ -291,27 +290,27 @@ Macros:
291290
}
292291
}
293292
.fa.article-icon, .fa.section-icon {
294-
$(C_A float, left)
293+
float: left;
295294
padding-right: 15px;
296295
font-size: 80px;
297-
$(C_A width, 100px)
296+
width: 100px;
298297
text-align: center;
299298
padding-bottom: 15px;
300299
}
301300
@media only screen and (max-width: 50em)
302301
{
303302
.fa.article-icon, .fa-section-icon {
304303
font-size: 60px;
305-
$(C_A width, 80px)
304+
width: 80px;
306305
}
307306
#dman {
308-
$(C_A height, 200px)
307+
height: 200px;
309308
}
310309
}
311310
@media only screen and (max-width: 30em) {
312311
.page-contents {
313-
$(C_A width, 80%)
314-
$(C_A margin, 0 auto)
312+
width: 80%;
313+
margin: 0 auto;
315314
margin-bottom: 1em;
316315
}
317316
}

contributors.dd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ Macros:
2828
TITLE=Contributors ($(NR_D_CONTRIBUTORS))
2929
GH_REPO=$(LINK2 https://github.com/dlang/$1, $(D $1))
3030
D_CONTRIBUTOR=$(LI $1)
31-
C_A=$1:$2;
3231
EXTRA_HEADERS=$(T style,
3332
#all-d-contributors {
3433
-moz-column-gap: 20px;
3534
-webkit-column-gap: 20px;
36-
$(C_A column-gap, 20px)
35+
column-gap: 20px;
3736
-moz-column-width: 11.5em;
3837
-webkit-column-width: 11.5em;
39-
$(C_A column-width, 11.5em)
40-
$(C_A list-style-type, none)
38+
column-width: 11.5em;
39+
list-style-type: none;
4140
}
4241
)
4342
_=

download.dd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,11 @@ Macros:
267267
</div>
268268
)
269269
)
270-
C_A=$1:$2;
271270
EXTRA_HEADERS=$(T style,
272271
.download_paragraph > span {
273272
visibility: hidden;
274273
margin-left: 0.4em;
275-
$(C_A font-size, 125%)
274+
font-size: 125%;
276275
}
277276
.download_paragraph:hover > span {
278277
visibility: visible;

index.dd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,6 @@ Macros:
698698
TOUR=$(DIVC item, $(SECTION4 $(TC i, fa fa-$1 big-icon)$2, $3))
699699
WHY_D_ICON=$(TC i, fa fa-$1 why-d-icon)
700700
_=
701-
_= Single word inline CSS needs to be escaped _=
702-
C_A=$1:$2;
703701
META_DESCRIPTION=D is a general-purpose programming language with static typing, systems-level access, and C-like syntax.
704702
EXTRA_HEADERS=$(T style,
705703
.why-d-icon {

orgs-using-d.dd

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,30 +269,28 @@ Macros:
269269
DORGIMG=<a class="orgs-using-d-img-wrapper vcontainer-box" href="$1"><img class="vcontainer-element" src="$(ROOT_DIR)images/orgs-using-d/$2" /></a>
270270
DORG=$(DIVC orgs-using-d-cell, $(DORGIMG $2, $3) <h3 class="dont-highlight-link">$(LINK2 $2, $1)</h3> $(P $(DIVC orgs-using-d-desc, $4 ) $(DIVC orgs-using-d-uses donthyphenate, $5)))
271271

272-
_= Single word inline CSS needs to be escaped _=
273-
C_A=$1:$2;
274272
EXTRA_HEADERS=$(T style,
275273
#content, #content h1 {
276274
text-align: center;
277275
}
278276
.orgs-using-d-cell {
279-
$(C_A width, 250px)
280-
$(C_A display, inline-block)
277+
width: 250px;
278+
display: inline-block;
281279
vertical-align: top;
282280
margin-bottom: 0.5em;
283281
padding-left: 25px;
284282
padding-right: 25px;
285283
padding-bottom: 10px;
286284
}
287285
.orgs-using-d h3 {
288-
$(C_A margin, 0.4em)
286+
margin: 0.4em;
289287
margin-left: 0;
290288
margin-right: 0;
291289
text-align: center;
292290
}
293291
.orgs-using-d-img-wrapper {
294-
$(C_A width, 250px)
295-
$(C_A height, 100px)
292+
width: 250px;
293+
height: 100px;
296294
padding-bottom: 10px;
297295
text-align: center;
298296
}

0 commit comments

Comments
 (0)