Fix styling

This commit is contained in:
Jeremy Thomas 2024-06-27 04:03:20 +01:00
parent d3e01494db
commit ff3ffb12ef
6 changed files with 40 additions and 32 deletions

View File

@ -1,4 +1,4 @@
<div id="bulma-customizer-app"></div> <div id="bulma-customizer-app" class="is-hidden-mobile"></div>
<div id="scope" class="is-hidden"> <div id="scope" class="is-hidden">
<div class="breadcrumb"></div> <div class="breadcrumb"></div>
<div class="card"></div> <div class="card"></div>

View File

@ -19,16 +19,16 @@
{% include global/about.html %} {% include global/about.html %}
<script defer src="{{ site.url }}/assets/vendor/clipboard-2.0.11.min.js"></script> <script src="{{ site.url }}/assets/vendor/clipboard-2.0.11.min.js"></script>
<script defer type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script defer type="text/javascript"> docsearch({ <script type="text/javascript"> docsearch({
apiKey: 'cb93c14bebd90678e789c946d95ea94d', apiKey: 'cb93c14bebd90678e789c946d95ea94d',
indexName: 'bulma', indexName: 'bulma',
inputSelector: '#algoliaSearch', inputSelector: '#algoliaSearch',
debug: false // Set debug to true if you want to inspect the dropdown debug: false // Set debug to true if you want to inspect the dropdown
}); });
</script> </script>
<script defer src="{{ site.url }}/assets/javascript/main.js"></script> <script src="{{ site.url }}/assets/javascript/main.js"></script>
{% include global/customizer.html %} {% include global/customizer.html %}
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
import { createContext, useEffect, useRef, useState } from "react"; import { createContext, useEffect, useRef, useState } from "react";
import classNames from "classnames"; import classNames from "classnames";
import "../../../../css/bulma.css"; // import "../../../../css/bulma.css";
import "./App.css"; import "./App.css";
import cn from "./App.module.css"; import cn from "./App.module.css";
@ -515,14 +515,14 @@ function App() {
const exportClass = classNames({ const exportClass = classNames({
[cn.button]: true, [cn.button]: true,
"is-hidden": !context.isOpen, "is-hidden": !context.isOpen,
"button is-primary is-outlined": !context.showExport, button: !context.showExport,
"button is-primary": context.showExport, "button is-primary": context.showExport,
}); });
const buttonClass = classNames({ const buttonClass = classNames({
[cn.button]: true, [cn.button]: true,
"button is-primary": !context.isOpen, "button is-primary": !context.isOpen,
"button is-danger is-outlined": context.isOpen, button: context.isOpen,
}); });
return ( return (
@ -573,11 +573,15 @@ function App() {
<div className={cn.buttons}> <div className={cn.buttons}>
<button className={exportClass} onClick={handleExport}> <button className={exportClass} onClick={handleExport}>
Export <i className="fa-solid fa-code"></i>
<span>Export</span>
</button> </button>
<button className={buttonClass} onClick={handleOpening}> <button className={buttonClass} onClick={handleOpening}>
{context.isOpen ? "Close Customizer" : "Open Customizer"} <i className="fa-solid fa-palette"></i>
<span>
{context.isOpen ? "Close Customizer" : "Open Customizer"}
</span>
</button> </button>
</div> </div>
</div> </div>

View File

@ -48,3 +48,7 @@
right: 1rem; right: 1rem;
position: fixed; position: fixed;
} }
.button {
gap: 0.5rem;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long