Skip to content

Commit 756d234

Browse files
Tim-Obertlinawolf
authored andcommitted
Style PHP-Classes + Add property-card als central styling for property-cards
1 parent a715f49 commit 756d234

File tree

5 files changed

+39
-115
lines changed

5 files changed

+39
-115
lines changed
Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,4 @@
11

22
dl.confval {
3-
background-color: $white;
4-
border-radius: $border-radius;
5-
margin-bottom: $spacer * 1.5;
6-
padding-bottom: $spacer * .3;
7-
border: solid 3px $light;
8-
border-top-color: $gray-500;
9-
word-wrap: anywhere;
10-
white-space: normal;
11-
& > dt {
12-
display: block;
13-
background-color: $light;
14-
color: color-contrast($light);
15-
font-size: $h4-font-size;
16-
padding: .25em .5em;
17-
margin-bottom: .75em;
18-
code {
19-
color: color-contrast($light);
20-
word-wrap: anywhere;
21-
white-space: normal;
22-
}
23-
}
24-
& > dd {
25-
margin-right: 1rem;
26-
}
3+
@extend .property-card;
274
}

packages/typo3-docs-theme/assets/sass/components/directives/_phpdomain.scss

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,6 @@
33
//
44
.rst-content {
55
dl.php {
6-
border-radius: $border-radius;
7-
margin-bottom: $spacer;
8-
padding-bottom: $spacer * .3;
9-
.descname {
10-
background-color: transparent;
11-
border: none;
12-
color: $code-color;
13-
font-size: 100%;
14-
padding: 0;
15-
}
16-
.optional {
17-
padding: 0 .25em;
18-
}
19-
code {
20-
padding: 0 .25em;
21-
}
22-
.pre {
23-
font-family: $font-family-monospace;
24-
}
25-
.headerlink,
26-
.optional {
27-
color: $body-color;
28-
}
29-
.viewcode-link {
30-
padding-left: 1em;
31-
}
32-
& > dt {
33-
background-color: lighten($info, 50%);
34-
border-radius: $border-radius;
35-
border-top: solid 3px $info;
36-
color: darken($info, 50%);
37-
display: inline-block;
38-
font-size: $font-size-base;
39-
margin-bottom: calc(#{$spacer} / 2);
40-
padding: .25em .5em;
41-
position: relative;
42-
}
43-
dl.php > dt {
44-
background-color: $lighter;
45-
border-top: 2px solid darken($lighter, 30%);
46-
color: color-contrast($lighter);
47-
}
6+
@extend .property-card;
487
}
498
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// _propertyCard.scss used to display confvals, commands and php-classes
3+
//
4+
.property-card {
5+
background-color: $white;
6+
border-radius: $border-radius;
7+
margin-bottom: $spacer * 1.5;
8+
padding-bottom: $spacer * .3;
9+
border: solid 3px $light;
10+
border-top-color: $gray-500;
11+
word-wrap: anywhere;
12+
white-space: normal;
13+
14+
& > dt {
15+
display: block;
16+
background-color: $light;
17+
color: color-contrast($light);
18+
font-size: $h4-font-size;
19+
padding: .25em .5em;
20+
margin-bottom: .75em;
21+
22+
code {
23+
color: color-contrast($light);
24+
word-wrap: anywhere;
25+
white-space: normal;
26+
}
27+
}
28+
29+
& > dd {
30+
margin-right: 1rem;
31+
}
32+
}

packages/typo3-docs-theme/assets/sass/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
// Styles for special directives
5252
@import 'components/directives/admonition';
53+
@import 'components/directives/propertyCard';
5354
@import 'components/directives/confval.scss';
5455
@import 'components/directives/fieldlist';
5556
@import 'components/directives/phpdomain';

packages/typo3-docs-theme/resources/public/css/theme.css

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -25233,7 +25233,7 @@ ul[class*=horizbuttons-][class*=-note-] > li:hover, ul[class*=horizbuttons-][cla
2523325233
content: "\f071";
2523425234
}
2523525235

25236-
dl.confval {
25236+
.property-card, .rst-content dl.php, dl.confval {
2523725237
background-color: #ffffff;
2523825238
border-radius: 0.375rem;
2523925239
margin-bottom: 1.5rem;
@@ -25243,20 +25243,20 @@ dl.confval {
2524325243
word-wrap: anywhere;
2524425244
white-space: normal;
2524525245
}
25246-
dl.confval > dt {
25246+
.property-card > dt, .rst-content dl.php > dt, dl.confval > dt {
2524725247
display: block;
2524825248
background-color: rgb(242.25, 242.25, 242.25);
2524925249
color: #000;
2525025250
font-size: 1.25em;
2525125251
padding: 0.25em 0.5em;
2525225252
margin-bottom: 0.75em;
2525325253
}
25254-
dl.confval > dt code {
25254+
.property-card > dt code, .rst-content dl.php > dt code, dl.confval > dt code {
2525525255
color: #000;
2525625256
word-wrap: anywhere;
2525725257
white-space: normal;
2525825258
}
25259-
dl.confval > dd {
25259+
.property-card > dd, .rst-content dl.php > dd, dl.confval > dd {
2526025260
margin-right: 1rem;
2526125261
}
2526225262

@@ -25290,51 +25290,6 @@ dl.field-list > dt:after {
2529025290
margin: 0;
2529125291
}
2529225292
}
25293-
.rst-content dl.php {
25294-
border-radius: 0.375rem;
25295-
margin-bottom: 1rem;
25296-
padding-bottom: 0.3rem;
25297-
}
25298-
.rst-content dl.php .descname {
25299-
background-color: transparent;
25300-
border: none;
25301-
color: hsl(350, 100%, 40%);
25302-
font-size: 100%;
25303-
padding: 0;
25304-
}
25305-
.rst-content dl.php .optional {
25306-
padding: 0 0.25em;
25307-
}
25308-
.rst-content dl.php code {
25309-
padding: 0 0.25em;
25310-
}
25311-
.rst-content dl.php .pre {
25312-
font-family: "Source Code Pro", monospace;
25313-
}
25314-
.rst-content dl.php .headerlink,
25315-
.rst-content dl.php .optional {
25316-
color: #212529;
25317-
}
25318-
.rst-content dl.php .viewcode-link {
25319-
padding-left: 1em;
25320-
}
25321-
.rst-content dl.php > dt {
25322-
background-color: rgb(243.846473029, 250.2365145228, 252.153526971);
25323-
border-radius: 0.375rem;
25324-
border-top: solid 3px #319fc0;
25325-
color: black;
25326-
display: inline-block;
25327-
font-size: 1rem;
25328-
margin-bottom: calc(1rem / 2);
25329-
padding: 0.25em 0.5em;
25330-
position: relative;
25331-
}
25332-
.rst-content dl.php dl.php > dt {
25333-
background-color: rgb(247.35, 247.35, 247.35);
25334-
border-top: 2px solid rgb(170.85, 170.85, 170.85);
25335-
color: #000;
25336-
}
25337-
2533825293
.sidebar {
2533925294
margin: 0;
2534025295
margin-bottom: 1rem;

0 commit comments

Comments
 (0)