Skip to content

Commit d960f68

Browse files
committed
💄 modification du style des pages discussion et article
1 parent ae2fa7e commit d960f68

File tree

4 files changed

+10
-175
lines changed

4 files changed

+10
-175
lines changed

public/css/app.css

Lines changed: 4 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,174 +1746,6 @@ pre code.torchlight .line-number, pre code.torchlight .summary-caret {
17461746
color: rgba(var(--color-text-primary), var(--tw-text-opacity))
17471747
}
17481748

1749-
.rain {
1750-
position: absolute;
1751-
left: 0;
1752-
width: 100%;
1753-
height: 100%;
1754-
z-index: 2;
1755-
pointer-events: none;
1756-
}
1757-
1758-
.rain.back-row {
1759-
display: none;
1760-
z-index: 1;
1761-
bottom: 60px;
1762-
opacity: 0.5;
1763-
}
1764-
1765-
body.back-row-toggle .rain.back-row {
1766-
display: block;
1767-
}
1768-
1769-
.drop {
1770-
position: absolute;
1771-
bottom: 100%;
1772-
width: 15px;
1773-
height: 120px;
1774-
pointer-events: none;
1775-
-webkit-animation: drop 0.5s linear infinite;
1776-
animation: drop 0.5s linear infinite;
1777-
}
1778-
1779-
@-webkit-keyframes drop {
1780-
0% {
1781-
transform: translateY(0vh);
1782-
}
1783-
75% {
1784-
transform: translateY(90vh);
1785-
}
1786-
100% {
1787-
transform: translateY(90vh);
1788-
}
1789-
}
1790-
1791-
@keyframes drop {
1792-
0% {
1793-
transform: translateY(0vh);
1794-
}
1795-
75% {
1796-
transform: translateY(90vh);
1797-
}
1798-
100% {
1799-
transform: translateY(90vh);
1800-
}
1801-
}
1802-
1803-
.stem {
1804-
width: 1px;
1805-
height: 60%;
1806-
margin-left: 7px;
1807-
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25));
1808-
-webkit-animation: stem 0.5s linear infinite;
1809-
animation: stem 0.5s linear infinite;
1810-
}
1811-
1812-
@-webkit-keyframes stem {
1813-
0% {
1814-
opacity: 1;
1815-
}
1816-
65% {
1817-
opacity: 1;
1818-
}
1819-
75% {
1820-
opacity: 0;
1821-
}
1822-
100% {
1823-
opacity: 0;
1824-
}
1825-
}
1826-
1827-
@keyframes stem {
1828-
0% {
1829-
opacity: 1;
1830-
}
1831-
65% {
1832-
opacity: 1;
1833-
}
1834-
75% {
1835-
opacity: 0;
1836-
}
1837-
100% {
1838-
opacity: 0;
1839-
}
1840-
}
1841-
1842-
.splat {
1843-
width: 15px;
1844-
height: 10px;
1845-
border-top: 2px dotted rgba(255, 255, 255, 0.5);
1846-
border-radius: 50%;
1847-
opacity: 1;
1848-
transform: scale(0);
1849-
-webkit-animation: splat 0.5s linear infinite;
1850-
animation: splat 0.5s linear infinite;
1851-
display: none;
1852-
}
1853-
1854-
body.splat-toggle .splat {
1855-
display: block;
1856-
}
1857-
1858-
@-webkit-keyframes splat {
1859-
0% {
1860-
opacity: 1;
1861-
transform: scale(0);
1862-
}
1863-
80% {
1864-
opacity: 1;
1865-
transform: scale(0);
1866-
}
1867-
90% {
1868-
opacity: 0.5;
1869-
transform: scale(1);
1870-
}
1871-
100% {
1872-
opacity: 0;
1873-
transform: scale(1.5);
1874-
}
1875-
}
1876-
1877-
@keyframes splat {
1878-
0% {
1879-
opacity: 1;
1880-
transform: scale(0);
1881-
}
1882-
80% {
1883-
opacity: 1;
1884-
transform: scale(0);
1885-
}
1886-
90% {
1887-
opacity: 0.5;
1888-
transform: scale(1);
1889-
}
1890-
100% {
1891-
opacity: 0;
1892-
transform: scale(1.5);
1893-
}
1894-
}
1895-
1896-
.splat-toggle {
1897-
top: 20px;
1898-
}
1899-
1900-
.back-row-toggle {
1901-
top: 90px;
1902-
line-height: 12px;
1903-
}
1904-
1905-
.single-toggle {
1906-
top: 160px;
1907-
}
1908-
1909-
body.single-toggle .drop {
1910-
display: none;
1911-
}
1912-
1913-
body.single-toggle .drop:nth-child(10) {
1914-
display: block;
1915-
}
1916-
19171749
.header.is-fixed {
19181750
position: fixed;
19191751
left: 0px;
@@ -11144,6 +10976,10 @@ html {
1114410976
align-items: center;
1114510977
}
1114610978

10979+
.lg\:justify-start {
10980+
justify-content: flex-start;
10981+
}
10982+
1114710983
.lg\:justify-end {
1114810984
justify-content: flex-end;
1114910985
}

public/js/app.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,6 @@ __webpack_require__.r(__webpack_exports__);
30913091

30923092

30933093

3094-
// import './rain'
30953094

30963095
(0,_header__WEBPACK_IMPORTED_MODULE_3__.registerHeader)(); // Add Alpine to window object.
30973096

@@ -4466,7 +4465,7 @@ const autoHideHeader = function () {
44664465
scrolling = false;
44674466
};
44684467
/**
4469-
* Enregistre le comportement du header (fixed au scoll)
4468+
* Enregistre le comportement du header (fixed au scroll)
44704469
* @return {function(): void}
44714470
*/
44724471

@@ -5566,7 +5565,7 @@ function throttle(callback, delay) {
55665565
let timer;
55675566
return function () {
55685567
let context = this;
5569-
let now = new Date();
5568+
let now = +new Date();
55705569
let args = arguments;
55715570

55725571
if (last && now < last + delay) {

resources/views/articles/show.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@endphp
1212

1313
<article class="relative lg:grid lg:grid-cols-9 lg:gap-10" xmlns:livewire="http://www.w3.org/1999/html">
14-
<div class="hidden lg:block lg:col-span-2">
14+
<div class="hidden relative lg:block lg:col-span-2">
1515
<div class="divide-y divide-skin-base sticky space-y-6 top-4">
1616
<div>
1717
<h4 class="text-xs text-skin-base font-medium leading-4 tracking-wide uppercase">A propos de l’auteur</h4>
@@ -263,7 +263,7 @@ class="inline-flex items-center py-2 px-4 border border-skin-base rounded-md sha
263263
</footer>
264264
@endif
265265
</div>
266-
<div class="hidden lg:block lg:col-span-2">
266+
<div class="hidden relative lg:block lg:col-span-2">
267267
<div class="sticky top-4 space-y-10">
268268
@if($article->showToc())
269269
<div class="bg-skin-card px-4 py-6 rounded-lg shadow-lg">

resources/views/livewire/discussions/browse.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="relative lg:grid lg:grid-cols-12 lg:gap-8">
2-
<div class="hidden lg:block lg:col-span-2">
2+
<div class="hidden relative lg:block lg:col-span-2">
33
<aside class="sticky top-4 divide-y divide-skin-base">
44
<div class="pb-6">
55
<span class="inline-flex items-center px-2 py-1 rounded-md text-sm font-medium bg-skin-link text-skin-base font-sans">
@@ -59,7 +59,7 @@ class="w-full {{ $selectedSortBy === 'active' ? 'text-skin-inverted': 'text-skin
5959
@endforeach
6060
</div>
6161
</div>
62-
<div class="hidden lg:block lg:col-span-3">
62+
<div class="hidden relative lg:block lg:col-span-3">
6363
@include('discussions._contributions')
6464
</div>
6565
</div>

0 commit comments

Comments
 (0)