Skip to content

Commit 2a39b9e

Browse files
committed
tweek tailwind css declaraton
1 parent bc0f0ac commit 2a39b9e

File tree

5 files changed

+80
-21
lines changed

5 files changed

+80
-21
lines changed

docs/5.0/chart/index.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ To generate a graph you need to give to the `Dataset` constructor a list of pair
1414
- the value at key `0` represents the label
1515
- the value at key `1` is a `League\Period\Period` or a `League\Period\Sequence` object
1616

17+
#### Example
18+
1719
~~~php
1820
<?php
1921

@@ -31,7 +33,7 @@ $dataset = new Chart\Dataset([
3133
(new Chart\GanttChart())->stroke($dataset);
3234
~~~
3335

34-
results:
36+
#### Result
3537

3638
~~~bash
3739
period [----------------------------------------------------------)
@@ -42,6 +44,8 @@ results:
4244

4345
If you want to display a `Sequence` and some of its operations. You can append the operation result using the `Dataset::append` method.
4446

47+
#### Example
48+
4549
~~~php
4650
<?php
4751

@@ -60,7 +64,7 @@ $dataset->append('GAPS', $sequence->gaps());
6064
(new Chart\GanttChart())->stroke($dataset);
6165
~~~
6266

63-
results:
67+
#### Result
6468

6569
~~~bash
6670
A [-------------)
@@ -91,6 +95,8 @@ The `GanttChart::stroke` methods expects a `Dataset` object as its unique argume
9195

9296
If you wish to present the graph on another medium like a web browser or an image, you will need to implement the interface for your implementation.
9397

98+
#### Example
99+
94100
~~~php
95101
<?php
96102

@@ -104,7 +110,7 @@ $graph->stroke(new Chart\Dataset([
104110
]));
105111
~~~
106112

107-
results:
113+
#### Result
108114

109115
~~~bash
110116
first [---------------------------)
@@ -157,6 +163,8 @@ public readonly int GanttChartConfig::leftMarginSize; //Returns the m
157163
158164
Here's a complex example which highlights most of the features introduces along visualizing `Period` and `Sequance` instances:
159165

166+
#### Example
167+
160168
~~~php
161169
<?php
162170

@@ -199,6 +207,8 @@ $graph->stroke($dataset);
199207

200208
which will output in your console:
201209

210+
#### Result
211+
202212
~~~bash
203213
XLV. 💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩🍕😊😊😊😊😊😊😊😊😊🍔
204214
XLIV. 💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩🍅😊😊😊😊😊🎾💩💩💩

docs/5.0/period/modifying.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public Period::snapToYear(): Period
247247
public Period::snapToIsoYear(): Period
248248
~~~
249249

250-
### Examples
250+
#### Examples
251251

252252
~~~php
253253
$period = Period::fromDate('2022-01-08 09:44:38', '2022-01-08 09:45:01');

docs/_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<div class="fixed top-[3.5rem] h-screen shadow-xl px-4 left-0 hidden peer-checked:block lg:relative lg:top-0 lg:h-auto lg:px-0 lg:block lg:flex-none lg:shadow-none bg-slate-100 lg:bg-transparent">
5353
<div class="absolute inset-y-0 right-0 w-full lg:w-[50vw]"></div>
5454
<nav class="sticky top-[4.5rem] w-64 pr-8 text-base lg:text-sm xl:w-72 xl:pr-16">
55-
<ul role="list" class="-ml-0.5 h-[calc(100vh-4.5rem)] overflow-y-auto py-7 pl-0.5 space-y-8">
55+
<ul role="list" class="-ml-0.5 h-[calc(100vh-4.5rem)] overflow-y-auto py-7 pl-0.5 space-y-4">
5656
{% if upgrading == false %}
5757
{% for section in site.data.menu.version[version] %}
5858
<h3 class="font-semibold tracking-tight text-slate-900">{{ section[0] }}</h3>

docs/input.css

+23-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
pre {
22-
@apply p-6 overflow-auto bg-gray-100 border-0 border-b-4 border-b-gray-200 rounded-lg my-4;
22+
@apply p-6 overflow-auto bg-gray-100 rounded-lg my-4;
2323
}
2424

2525
.hover-button:hover {
@@ -378,7 +378,7 @@ code {
378378
.message-info,
379379
.message-notice,
380380
.message-warning {
381-
@apply p-2 my-3 rounded-lg text-light
381+
@apply p-5 my-3 rounded-lg text-light
382382
}
383383

384384
.message-info a,.message-notice a,.message-warning a {
@@ -393,7 +393,11 @@ code {
393393
.message-info code {
394394
background: rgba(255,255,255,0.8);
395395
border-color: #5faee3;
396-
color: #196090
396+
color: #196090;
397+
margin-left:.3rem;
398+
margin-right: .3rem;
399+
padding-right: .3rem;
400+
padding-left: .3rem;
397401
}
398402

399403
.message-notice {
@@ -404,7 +408,11 @@ code {
404408
.message-notice code {
405409
background: rgba(255,255,255,0.8);
406410
border-color: #f4d03f;
407-
color: #927608
411+
color: #927608;
412+
margin-left:.3rem;
413+
margin-right: .3rem;
414+
padding-right: .3rem;
415+
padding-left: .3rem;
408416
}
409417

410418
.message-warning {
@@ -415,19 +423,27 @@ code {
415423
.message-warning code {
416424
background: rgba(255,255,255,0.8);
417425
border-color: #ed7669;
418-
color: #a82315
426+
color: #a82315;
427+
margin-left:.3rem;
428+
margin-right: .3rem;
429+
padding-right: .3rem;
430+
padding-left: .3rem;
419431
}
420432

421433
.content h1 {
422434
@apply font-black text-6xl tracking-tighter mb-6
423435
}
424436

425437
.content h2 {
426-
@apply text-3xl tracking-tight text-period-base mb-4
438+
@apply text-3xl tracking-tight text-period-base mt-10 mb-3
427439
}
428440

429441
.content h3 {
430-
@apply text-2xl tracking-tight text-gray-800 py-3
442+
@apply text-2xl tracking-tight text-gray-800 mt-10 mb-3 py-3
443+
}
444+
445+
.content h4 {
446+
@apply text-xl tracking-tight text-period-dark mt-10 mb-3 py-3
431447
}
432448

433449
.content {

docs/output.css

+42-9
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,10 @@ video {
691691
margin-top: 1.5rem;
692692
}
693693

694+
.mt-1 {
695+
margin-top: 0.25rem;
696+
}
697+
694698
.block {
695699
display: block;
696700
}
@@ -844,6 +848,12 @@ video {
844848
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
845849
}
846850

851+
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
852+
--tw-space-y-reverse: 0;
853+
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
854+
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
855+
}
856+
847857
.overflow-hidden {
848858
overflow: hidden;
849859
}
@@ -1214,10 +1224,6 @@ pre {
12141224
margin-bottom: 1rem;
12151225
overflow: auto;
12161226
border-radius: 0.5rem;
1217-
border-width: 0px;
1218-
border-bottom-width: 4px;
1219-
--tw-border-opacity: 1;
1220-
border-bottom-color: rgb(229 231 235 / var(--tw-border-opacity));
12211227
--tw-bg-opacity: 1;
12221228
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
12231229
padding: 1.5rem;
@@ -1607,7 +1613,7 @@ code {
16071613
margin-top: 0.75rem;
16081614
margin-bottom: 0.75rem;
16091615
border-radius: 0.5rem;
1610-
padding: 0.5rem;
1616+
padding: 1.25rem;
16111617
--tw-text-opacity: 1;
16121618
color: rgb(128 128 128 / var(--tw-text-opacity));
16131619
}
@@ -1624,7 +1630,11 @@ code {
16241630
.message-info code {
16251631
background: rgba(255,255,255,0.8);
16261632
border-color: #5faee3;
1627-
color: #196090
1633+
color: #196090;
1634+
margin-left:.3rem;
1635+
margin-right: .3rem;
1636+
padding-right: .3rem;
1637+
padding-left: .3rem;
16281638
}
16291639

16301640
.message-notice {
@@ -1635,7 +1645,11 @@ code {
16351645
.message-notice code {
16361646
background: rgba(255,255,255,0.8);
16371647
border-color: #f4d03f;
1638-
color: #927608
1648+
color: #927608;
1649+
margin-left:.3rem;
1650+
margin-right: .3rem;
1651+
padding-right: .3rem;
1652+
padding-left: .3rem;
16391653
}
16401654

16411655
.message-warning {
@@ -1646,7 +1660,11 @@ code {
16461660
.message-warning code {
16471661
background: rgba(255,255,255,0.8);
16481662
border-color: #ed7669;
1649-
color: #a82315
1663+
color: #a82315;
1664+
margin-left:.3rem;
1665+
margin-right: .3rem;
1666+
padding-right: .3rem;
1667+
padding-left: .3rem;
16501668
}
16511669

16521670
.content h1 {
@@ -1658,7 +1676,8 @@ code {
16581676
}
16591677

16601678
.content h2 {
1661-
margin-bottom: 1rem;
1679+
margin-top: 2.5rem;
1680+
margin-bottom: 0.75rem;
16621681
font-size: 1.875rem;
16631682
line-height: 2.25rem;
16641683
letter-spacing: -0.025em;
@@ -1667,6 +1686,8 @@ code {
16671686
}
16681687

16691688
.content h3 {
1689+
margin-top: 2.5rem;
1690+
margin-bottom: 0.75rem;
16701691
padding-top: 0.75rem;
16711692
padding-bottom: 0.75rem;
16721693
font-size: 1.5rem;
@@ -1676,6 +1697,18 @@ code {
16761697
color: rgb(31 41 55 / var(--tw-text-opacity));
16771698
}
16781699

1700+
.content h4 {
1701+
margin-top: 2.5rem;
1702+
margin-bottom: 0.75rem;
1703+
padding-top: 0.75rem;
1704+
padding-bottom: 0.75rem;
1705+
font-size: 1.25rem;
1706+
line-height: 1.75rem;
1707+
letter-spacing: -0.025em;
1708+
--tw-text-opacity: 1;
1709+
color: rgb(178 139 20 / var(--tw-text-opacity));
1710+
}
1711+
16791712
.content {
16801713
line-height: 2;
16811714
}

0 commit comments

Comments
 (0)