From 75d5d60499fc9a507b270cfa187f16e8ff86e36d Mon Sep 17 00:00:00 2001 From: neoncitylights Date: Tue, 31 Oct 2023 06:58:01 +0000 Subject: [PATCH] deploy: 85dbb85f095ebcfbec7ca43e17418829a1d623a5 --- .../Neoncitylights-MediaType-MediaType.html | 429 ++++++++++++------ css/base.css | 190 ++++++-- css/normalize.css | 2 +- css/template.css | 139 ++++-- files/src-mediatype.html | 154 ++++++- files/src/MediaType.php.txt | 144 ++++++ graphs/classes.html | 10 +- index.html | 46 +- indices/files.html | 25 +- js/template.js | 17 + namespaces/default.html | 143 +++++- namespaces/neoncitylights-mediatype.html | 153 ++++++- namespaces/neoncitylights.html | 143 +++++- packages/default.html | 143 +++++- packages/neoncitylightsphp-media-type.html | 153 ++++++- packages/neoncitylightsphp-media.html | 143 +++++- packages/neoncitylightsphp.html | 143 +++++- reports/deprecated.html | 33 +- reports/errors.html | 31 +- reports/markers.html | 33 +- 20 files changed, 1903 insertions(+), 371 deletions(-) create mode 100644 files/src/MediaType.php.txt create mode 100644 js/template.js diff --git a/classes/Neoncitylights-MediaType-MediaType.html b/classes/Neoncitylights-MediaType-MediaType.html index 9ea2f4c..856fbfe 100644 --- a/classes/Neoncitylights-MediaType-MediaType.html +++ b/classes/Neoncitylights-MediaType-MediaType.html @@ -10,7 +10,7 @@ - + @@ -19,6 +19,7 @@ + @@ -52,7 +53,7 @@

neo - @@ -406,18 +437,19 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#parameters + https://mimesniff.spec.whatwg.org/#parameters
-
+

$subType +

@@ -438,6 +471,7 @@

: 25 + @@ -452,18 +486,19 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#subtype + https://mimesniff.spec.whatwg.org/#subtype
-
+

$type +

@@ -484,6 +520,7 @@

: 19 + @@ -498,18 +535,19 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#type + https://mimesniff.spec.whatwg.org/#type
-
+
@@ -518,6 +556,7 @@

Methods +

__construct() +

@@ -541,6 +582,8 @@

public __construct(string $type, string $subType, array<string|int, mixed> $parameters) : mixed +
+

Parameters
@@ -569,10 +612,6 @@
Parameters
-
Return values
- mixed - — -
Return values

__toString() +

@@ -597,15 +638,17 @@

public __toString() : string +
+
+
Return values
- string - — - - + string +
+

Return values

getEssence() +

Gives the type and subtype of a media type.

@@ -630,6 +675,8 @@

public getEssence() : string +
+

e.g, if given 'text/plain;charset=UTF-8', it will return 'text/plain'.

@@ -637,24 +684,25 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#mime-type-essence + https://mimesniff.spec.whatwg.org/#mime-type-essence
-
+ +
Return values
- string - — - - + string +
+
Return values

getParameters() +

Gives an array of parameters of a media type, @@ -680,29 +730,32 @@

public getParameters() : array<string|int, mixed> +
+

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#parameters + https://mimesniff.spec.whatwg.org/#parameters
-
+ +
Return values
- array<string|int, mixed> - — - - + array<string|int, mixed> +
+
Return values

getParameterValue() +

Gives the value of a specified parameter of a media type, @@ -728,6 +783,8 @@

public getParameterValue(string $parameterName) : string|null +
+

e.g, if given a media type of 'text/plain;charset=UTF-8', and the given parameter is 'charset', it will return 'UTF-8'.

@@ -745,11 +802,11 @@

Parameters
+
Return values
- string|null - — - - + string|null +
+
Return values

getSubType() +

Gives the second portion of a media type's essence.

@@ -774,6 +833,8 @@

public getSubType() : string +
+

e.g, if given 'text/plain', it will return 'plain'.

@@ -781,24 +842,25 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#subtype + https://mimesniff.spec.whatwg.org/#subtype
-
+ +
Return values
- string - — - - + string +
+
Return values

getType() +

Gives the first portion of a media type's essence.

@@ -823,6 +887,8 @@

public getType() : string +
+

e.g, if given 'text/plain', it will return 'text'.

@@ -830,24 +896,25 @@

Tags - + +
see
- https://mimesniff.spec.whatwg.org/#type + https://mimesniff.spec.whatwg.org/#type
-
+ +
Return values
- string - — - - + string +
+
Return values

newFromString() +

@@ -871,6 +940,8 @@

public static newFromString(string $input) : self|null +
+

Parameters
@@ -885,78 +956,159 @@
Parameters
+
Return values
- self|null - — - - -
+ self|null - - -
+
+
+ +
+ On this page + + +
+ +
+ +

Search results

@@ -967,7 +1119,6 @@

Search results

- diff --git a/css/base.css b/css/base.css index b71c759..3482dfb 100644 --- a/css/base.css +++ b/css/base.css @@ -1,8 +1,9 @@ + :root { /* Typography */ - --font-primary: 'Source Sans Pro', Helvetica, Arial, sans-serif; - --font-secondary: 'Source Sans Pro', Helvetica, Arial, sans-serif; + --font-primary: 'Open Sans', Helvetica, Arial, sans-serif; + --font-secondary: 'Open Sans', Helvetica, Arial, sans-serif; --font-monospace: 'Source Code Pro', monospace; --line-height--primary: 1.6; --letter-spacing--primary: .05rem; @@ -20,15 +21,34 @@ --text-xxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); --text-xxxxxl: calc(var(--text-base-size) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); + --color-hue-red: 4; + --color-hue-pink: 340; + --color-hue-purple: 291; + --color-hue-deep-purple: 262; + --color-hue-indigo: 231; + --color-hue-blue: 207; + --color-hue-light-blue: 199; + --color-hue-cyan: 187; + --color-hue-teal: 174; + --color-hue-green: 122; + --color-hue-phpdocumentor-green: 96; + --color-hue-light-green: 88; + --color-hue-lime: 66; + --color-hue-yellow: 54; + --color-hue-amber: 45; + --color-hue-orange: 36; + --color-hue-deep-orange: 14; + --color-hue-brown: 16; + /* Colors */ - --primary-color-hue: 96; + --primary-color-hue: var(--color-hue-phpdocumentor-green, --color-hue-phpdocumentor-green); --primary-color-saturation: 57%; --primary-color: hsl(var(--primary-color-hue), var(--primary-color-saturation), 60%); --primary-color-darken: hsl(var(--primary-color-hue), var(--primary-color-saturation), 40%); - --primary-color-darker: hsl(var(--primary-color-hue), var(--primary-color-saturation), 20%); + --primary-color-darker: hsl(var(--primary-color-hue), var(--primary-color-saturation), 25%); --primary-color-darkest: hsl(var(--primary-color-hue), var(--primary-color-saturation), 10%); - --primary-color-lighten: hsl(var(--primary-color-hue), var(--primary-color-saturation), 80%); - --primary-color-lighter: hsl(var(--primary-color-hue), var(--primary-color-saturation), 99%); + --primary-color-lighten: hsl(var(--primary-color-hue), calc(var(--primary-color-saturation) - 20%), 85%); + --primary-color-lighter: hsl(var(--primary-color-hue), calc(var(--primary-color-saturation) - 45%), 97.5%); --dark-gray: #d1d1d1; --light-gray: #f0f0f0; @@ -44,8 +64,8 @@ --button-text-color: #555; --button-text-color-primary: white; --popover-background-color: rgba(255, 255, 255, 0.75); - --link-color-primary: var(--primary-color-darken); - --link-hover-color-primary: var(--primary-color-darker); + --link-color-primary: var(--primary-color-darker); + --link-hover-color-primary: var(--primary-color-darkest); --form-field-border-color: var(--dark-gray); --form-field-color: #fff; --admonition-success-color: var(--primary-color); @@ -139,7 +159,6 @@ body { margin-bottom: var(--spacing-md); margin-top: var(--spacing-md); } - .phpdocumentor h1 .headerlink, .phpdocumentor h2 .headerlink, .phpdocumentor h3 .headerlink, @@ -147,21 +166,32 @@ body { .phpdocumentor h5 .headerlink, .phpdocumentor h6 .headerlink { - transition: all .3s ease-in-out; - opacity: 0; - text-decoration: none; - color: silver; - font-size: 80%; + display: none; } -.phpdocumentor h1:hover .headerlink, -.phpdocumentor h2:hover .headerlink, -.phpdocumentor h3:hover .headerlink, -.phpdocumentor h4:hover .headerlink, -.phpdocumentor h5:hover .headerlink, -.phpdocumentor h6:hover .headerlink -{ - opacity: 1; +@media (min-width: 550px) { + .phpdocumentor h1 .headerlink, + .phpdocumentor h2 .headerlink, + .phpdocumentor h3 .headerlink, + .phpdocumentor h4 .headerlink, + .phpdocumentor h5 .headerlink, + .phpdocumentor h6 .headerlink { + display: inline; + transition: all .3s ease-in-out; + opacity: 0; + text-decoration: none; + color: silver; + font-size: 80%; + } + + .phpdocumentor h1:hover .headerlink, + .phpdocumentor h2:hover .headerlink, + .phpdocumentor h3:hover .headerlink, + .phpdocumentor h4:hover .headerlink, + .phpdocumentor h5:hover .headerlink, + .phpdocumentor h6:hover .headerlink { + opacity: 1; + } } .phpdocumentor p { margin-top: 0; @@ -191,11 +221,17 @@ body { box-sizing: border-box; margin: 0 auto; max-width: var(--container-width); - padding: 0 var(--spacing-lg); + padding: 0 var(--spacing-sm); position: relative; width: 100%; } +@media (min-width: 550px) { + .phpdocumentor-section { + padding: 0 var(--spacing-lg); + } +} + @media (min-width: 1200px) { .phpdocumentor-section { padding: 0; @@ -426,7 +462,7 @@ textarea { outline: 0; } -.phpdocumentor-label { +label.phpdocumentor-label { display: block; margin-bottom: var(--spacing-xs); } @@ -458,8 +494,15 @@ div.phpdocumentor-list > ul, ol.phpdocumentor-list, ul.phpdocumentor-list { margin-top: 0; - padding-left: 1rem; - margin-bottom: var(--spacing-md); + padding-left: var(--spacing-md); + margin-bottom: var(--spacing-sm); +} + +.phpdocumentor-column ul.-clean, +div.phpdocumentor-list > ul.-clean, +ul.phpdocumentor-list.-clean { + list-style: none; + padding-left: 0; } dl { @@ -473,7 +516,7 @@ ul.phpdocumentor-list ol.phpdocumentor-list, ol.phpdocumentor-list ol.phpdocumentor-list, ol.phpdocumentor-list ul.phpdocumentor-list { font-size: var(--text-sm); - margin: var(--spacing-xs) 0 var(--spacing-xs) calc(var(--spacing-xs) * 2); + margin: 0 0 0 calc(var(--spacing-xs) * 2); } .phpdocumentor-column ul li, @@ -544,6 +587,36 @@ th.phpdocumentor-heading:last-child, td.phpdocumentor-cell:last-child { padding-right: 0; } +.phpdocumentor-label-line { + display: flex; + flex-direction: row; + gap: 1rem +} + +.phpdocumentor-label { + background: #f6f6f6; + border-radius: .25rem; + font-size: 80%; + display: inline-block; + overflow: hidden +} + +/* +It would be better if the phpdocumentor-element class were to become a flex element with a gap, but for #3337 that +is too big a fix and needs to be done in a new design iteration. +*/ +.phpdocumentor-signature + .phpdocumentor-label-line .phpdocumentor-label { + margin-top: var(--spacing-sm); +} + +.phpdocumentor-label span { + display: inline-block; + padding: .125rem .5rem; +} + +.phpdocumentor-label--success span:last-of-type { + background: #abe1ab; +} .phpdocumentor-header { display: flex; @@ -628,7 +701,7 @@ td.phpdocumentor-cell:last-child { @media (min-width: 1000px) { .phpdocumentor-title { - width: 30.6666666667%; + width: 22%; border-right: var(--sidebar-border-color) solid 1px; } @@ -763,6 +836,7 @@ td.phpdocumentor-cell:last-child { .phpdocumentor .phpdocumentor-sidebar__category-header { font-size: var(--text-md); + margin-top: 0; margin-bottom: var(--spacing-xs); color: var(--link-color-primary); font-weight: 600; @@ -933,10 +1007,6 @@ td.phpdocumentor-cell:last-child { margin: 0 0 0 auto; } } -.phpdocumentor-content { - position: relative; -} - .phpdocumentor-search-results { backdrop-filter: blur(5px); background: var(--popover-background-color); @@ -1053,6 +1123,7 @@ td.phpdocumentor-cell:last-child { display: flex; align-items: center; justify-content: center; + z-index: 1; } .phpdocumentor-modal__open { @@ -1090,6 +1161,61 @@ td.phpdocumentor-cell:last-child { font-weight: bold; cursor: pointer; } +.phpdocumentor-on-this-page__sidebar { + display: none; +} + +.phpdocumentor-on-this-page__title { + display: block; + font-weight: bold; + margin-bottom: var(--spacing-sm); + color: var(--link-color-primary); +} + +@media (min-width: 1000px) { + .phpdocumentor-on-this-page__sidebar { + display: block; + position: relative; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar, + [scrollbars]::-webkit-scrollbar { + height: 8px; + width: 8px; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar-corner, + [scrollbars]::-webkit-scrollbar-corner { + background: 0; + } + + .phpdocumentor-on-this-page__content::-webkit-scrollbar-thumb, + [scrollbars]::-webkit-scrollbar-thumb { + background: rgba(128,134,139,0.26); + border-radius: 8px; + } + + .phpdocumentor-on-this-page__content { + position: sticky; + height: calc(100vh - var(--header-height)); + overflow-y: auto; + border-left: 1px solid var(--sidebar-border-color); + padding-left: var(--spacing-lg); + font-size: 90%; + top: -1px; /* Needed for the javascript to make the .-stuck trick work */ + flex: 0 1 auto; + width: 15vw; + } + + .phpdocumentor-on-this-page__content.-stuck { + height: 100vh; + } + + .phpdocumentor-on-this-page__content li { + word-break: break-all; + line-height: normal; + } +} /* Used for screen readers and such */ .visually-hidden { diff --git a/css/normalize.css b/css/normalize.css index 579152b..653dc00 100644 --- a/css/normalize.css +++ b/css/normalize.css @@ -76,7 +76,7 @@ audio:not([controls]) { [hidden], template { - display: none; + display: none !important; } /* Links diff --git a/css/template.css b/css/template.css index f717828..898b676 100644 --- a/css/template.css +++ b/css/template.css @@ -1,3 +1,25 @@ + +.phpdocumentor-content { + position: relative; + display: flex; + gap: var(--spacing-md); +} + +.phpdocumentor-content > section:first-of-type { + width: 75%; + flex: 1 1 auto; +} + +@media (min-width: 1900px) { + .phpdocumentor-content > section:first-of-type { + width: 100%; + flex: 1 1 auto; + } +} + +.phpdocumentor .phpdocumentor-content__title { + margin-top: 0; +} .phpdocumentor-summary { font-style: italic; } @@ -8,8 +30,58 @@ position: relative; } +.phpdocumentor-element .phpdocumentor-element { + border: 1px solid var(--primary-color-lighten); + margin-bottom: var(--spacing-md); + padding: var(--spacing-xs); + border-radius: 5px; +} + +.phpdocumentor-element.-deprecated .phpdocumentor-element__name { + text-decoration: line-through; +} + +@media (min-width: 550px) { + .phpdocumentor-element .phpdocumentor-element { + margin-bottom: var(--spacing-lg); + padding: var(--spacing-md); + } +} + +.phpdocumentor-element__modifier { + font-size: var(--text-xxs); + padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); + color: var(--text-color); + background-color: var(--light-gray); + border-radius: 3px; + text-transform: uppercase; +} + +.phpdocumentor .phpdocumentor-elements__header { + margin-top: var(--spacing-xxl); + margin-bottom: var(--spacing-lg); +} + .phpdocumentor .phpdocumentor-element__name { line-height: 1; + margin-top: 0; + font-weight: 300; + font-size: var(--text-lg); + word-break: break-all; + margin-bottom: var(--spacing-sm); +} + +@media (min-width: 550px) { + .phpdocumentor .phpdocumentor-element__name { + font-size: var(--text-xl); + margin-bottom: var(--spacing-xs); + } +} + +@media (min-width: 1200px) { + .phpdocumentor .phpdocumentor-element__name { + margin-bottom: var(--spacing-md); + } } .phpdocumentor-element__package, @@ -24,38 +96,28 @@ .phpdocumentor-element__package .phpdocumentor-breadcrumbs { display: inline; } - -.phpdocumentor-element:not(:last-child) { - border-bottom: 1px solid var(--primary-color-lighten); - padding-bottom: var(--spacing-lg); +.phpdocumentor .phpdocumentor-signature { + display: block; + font-size: var(--text-sm); + border: 1px solid #f0f0f0; } -.phpdocumentor-element.-deprecated .phpdocumentor-element__name { +.phpdocumentor .phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { text-decoration: line-through; } -.phpdocumentor-element__modifier { - font-size: var(--text-xxs); - padding: calc(var(--spacing-base-size) / 4) calc(var(--spacing-base-size) / 2); - color: var(--text-color); - background-color: var(--light-gray); - border-radius: 3px; - text-transform: uppercase; -} -.phpdocumentor-signature { - display: inline-block; - font-size: var(--text-sm); - margin-bottom: var(--spacing-md); +@media (min-width: 550px) { + .phpdocumentor .phpdocumentor-signature { + margin-left: calc(var(--spacing-xl) * -1); + width: calc(100% + var(--spacing-xl)); + } } -.phpdocumentor-signature.-deprecated .phpdocumentor-signature__name { - text-decoration: line-through; -} .phpdocumentor-table-of-contents { } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry { - padding-top: var(--spacing-xs); + margin-bottom: var(--spacing-xxs); margin-left: 2rem; display: flex; } @@ -90,7 +152,7 @@ width: 1.25rem; height: 1.25rem; line-height: 1.25rem; - background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; + background: transparent url('data:image/svg+xml;utf8,') no-repeat center center; content: ''; position: absolute; left: 0; @@ -104,12 +166,14 @@ .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-method:before { content: 'M'; - background-image: url('data:image/svg+xml;utf8,'); + color: ''; + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-function:before { content: 'M'; - background-image: url('data:image/svg+xml;utf8,'); + color: ' 96'; + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-property:before { @@ -119,7 +183,7 @@ .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-constant:before { content: 'C'; background-color: transparent; - background-image: url('data:image/svg+xml;utf8,'); + background-image: url('data:image/svg+xml;utf8,'); } .phpdocumentor-table-of-contents .phpdocumentor-table-of-contents__entry.-class:before { @@ -151,11 +215,26 @@ margin-left: 2rem; } .phpdocumentor-element-found-in { - position: absolute; - top: 0; - right: 0; - font-size: var(--text-sm); - color: gray; + display: none; +} + +@media (min-width: 550px) { + .phpdocumentor-element-found-in { + display: block; + font-size: var(--text-sm); + color: gray; + margin-bottom: 1rem; + } +} + +@media (min-width: 1200px) { + .phpdocumentor-element-found-in { + position: absolute; + top: var(--spacing-sm); + right: var(--spacing-sm); + font-size: var(--text-sm); + margin-bottom: 0; + } } .phpdocumentor-element-found-in .phpdocumentor-element-found-in__source { diff --git a/files/src-mediatype.html b/files/src-mediatype.html index 9cfe0ef..0cd7c7b 100644 --- a/files/src-mediatype.html +++ b/files/src-mediatype.html @@ -10,7 +10,7 @@ - + @@ -19,6 +19,7 @@ + @@ -52,7 +53,7 @@

neo -