mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Merge branch 'master' of https://github.com/LukyVj/tailwindcss into agolia
This commit is contained in:
commit
a3d93d4044
13771
docs/package-lock.json
generated
Normal file
13771
docs/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
41
docs/source/_assets/less/docsearch.less
Normal file
41
docs/source/_assets/less/docsearch.less
Normal file
@ -0,0 +1,41 @@
|
||||
.algolia-autocomplete {
|
||||
width: 100%;
|
||||
|
||||
[class^="ds-dataset-"] {
|
||||
.algolia-docsearch-suggestion--text {
|
||||
.algolia-docsearch-suggestion--highlight {
|
||||
box-shadow: inset 0 -2px 0 0 rgba(68, 168, 179,.8)
|
||||
}
|
||||
}
|
||||
.algolia-docsearch-suggestion--highlight {
|
||||
color: #44a8b3;
|
||||
background: rgba(68, 168, 179, .1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
.algolia-autocomplete.algolia-autocomplete-right {
|
||||
.ds-dropdown-menu {
|
||||
width: 100vw !important;
|
||||
max-width: ~"calc(100vw - 32px) !important";
|
||||
min-width: ~"calc(100vw - 32px) !important";
|
||||
}
|
||||
|
||||
.algolia-docsearch-suggestion.algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
|
||||
display: none;
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.algolia-docsearch-suggestion.algolia-docsearch-suggestion .algolia-docsearch-suggestion--content {
|
||||
width: 100%;
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -18,6 +18,8 @@ ul {
|
||||
@apply .list-reset;
|
||||
}
|
||||
|
||||
@import "sidebar";
|
||||
@import "docsearch";
|
||||
@import "prism";
|
||||
@import "markdown";
|
||||
|
||||
|
||||
3
docs/source/_assets/less/sidebar.less
Normal file
3
docs/source/_assets/less/sidebar.less
Normal file
@ -0,0 +1,3 @@
|
||||
#sidebar {
|
||||
top: 11.8em
|
||||
}
|
||||
@ -18,6 +18,7 @@
|
||||
@import url("https://use.typekit.net/iqy1okj.css");
|
||||
</style>
|
||||
<link rel="stylesheet" href="{{ mix('/css/main.css') }}">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
|
||||
<script src="{{ mix('/js/nav.js') }}"></script>
|
||||
</head>
|
||||
@ -25,6 +26,22 @@
|
||||
@yield('body')
|
||||
@if ($page->production)
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-109068504-1"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
docsearch({
|
||||
apiKey: '3df93446658cd9c4e314d4c02a052188',
|
||||
indexName: 'tailwindcss',
|
||||
inputSelector: '#searchbox'
|
||||
});
|
||||
|
||||
// For mobile ( will be fixed soon, see : https://github.com/algolia/docsearch/issues/230 )
|
||||
docsearch({
|
||||
apiKey: '3df93446658cd9c4e314d4c02a052188',
|
||||
indexName: 'tailwindcss',
|
||||
inputSelector: '#searchbox-mobile',
|
||||
debug: true
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user