first commit
This commit is contained in:
33
wave/docs/assets/app.js
Normal file
33
wave/docs/assets/app.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'alpinejs';
|
||||
|
||||
window.inIframe = function() {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
if(inIframe()){
|
||||
hideIframeElements();
|
||||
}
|
||||
});
|
||||
|
||||
window.hideIframeElements = function(){
|
||||
document.getElementById('backToSiteBtn').classList.add('hidden');
|
||||
}
|
||||
|
||||
window.searchFocused = function(focused){
|
||||
if(focused){
|
||||
document.getElementById('sidebar').classList.remove('overflow-scroll');
|
||||
document.getElementById('bg-fade').classList.remove('invisible');
|
||||
document.getElementById('bg-fade').classList.remove('opacity-0');
|
||||
document.getElementById('bg-fade').classList.add('opacity-25');
|
||||
} else {
|
||||
document.getElementById('sidebar').classList.add('overflow-scroll');
|
||||
document.getElementById('bg-fade').classList.add('invisible');
|
||||
document.getElementById('bg-fade').classList.add('opacity-0');
|
||||
document.getElementById('bg-fade').classList.remove('opacity-25');
|
||||
}
|
||||
}
|
||||
40
wave/docs/assets/app.scss
Normal file
40
wave/docs/assets/app.scss
Normal file
@@ -0,0 +1,40 @@
|
||||
@tailwind base;
|
||||
|
||||
@tailwind components;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
[x-cloak]{
|
||||
display:none;
|
||||
}
|
||||
|
||||
html, body {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.docs{
|
||||
.prose h1, .lg\:prose-xl h1{
|
||||
@apply bg-clip-text text-transparent bg-gradient-to-r from-wave-500 to-purple-500 mb-5 pb-5;
|
||||
}
|
||||
.prose pre{
|
||||
background:#1e1b47;
|
||||
}
|
||||
.prose p code{
|
||||
font-size: 15px;
|
||||
color: #3c4257;
|
||||
font-weight: 500;
|
||||
padding: 1px 2px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e3e8ee;
|
||||
border-radius: 4px;
|
||||
&::before, &::after{
|
||||
content:"";
|
||||
}
|
||||
}
|
||||
|
||||
.prose blockquote p{
|
||||
&::before, &::after{
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
1
wave/docs/assets/css/app.css
Normal file
1
wave/docs/assets/css/app.css
Normal file
File diff suppressed because one or more lines are too long
1
wave/docs/assets/js/app.js
Normal file
1
wave/docs/assets/js/app.js
Normal file
File diff suppressed because one or more lines are too long
4
wave/docs/assets/mix-manifest.json
Normal file
4
wave/docs/assets/mix-manifest.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"/js/app.js": "/js/app.js",
|
||||
"/css/app.css": "/css/app.css"
|
||||
}
|
||||
Reference in New Issue
Block a user