Merge branch 'master' of https://github.com/LukyVj/tailwindcss into agolia

This commit is contained in:
Jonathan Reinink 2017-11-08 06:20:34 -05:00
commit a3d93d4044
5 changed files with 13834 additions and 0 deletions

13771
docs/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View 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;
}
}
}
}

View File

@ -18,6 +18,8 @@ ul {
@apply .list-reset;
}
@import "sidebar";
@import "docsearch";
@import "prism";
@import "markdown";

View File

@ -0,0 +1,3 @@
#sidebar {
top: 11.8em
}

View File

@ -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);}