-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the examples from teh bulma documentation: https://bulma.io/documentation/customize/with-node-sass/
- Loading branch information
1 parent
ee5ee2e
commit 8afb28f
Showing
9 changed files
with
999 additions
and
91 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<script> | ||
export let name; | ||
</script> | ||
|
||
<main> | ||
<h1>Hello {name}!</h1> | ||
<p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p> | ||
</main> | ||
|
||
<style> | ||
main { | ||
text-align: center; | ||
padding: 1em; | ||
max-width: 240px; | ||
margin: 0 auto; | ||
:global { | ||
@import 'src/styles/global.scss'; | ||
} | ||
</style> | ||
|
||
h1 { | ||
color: #ff3e00; | ||
text-transform: uppercase; | ||
font-size: 4em; | ||
font-weight: 100; | ||
} | ||
<h1 class="title"> | ||
Bulma | ||
</h1> | ||
|
||
@media (min-width: 640px) { | ||
main { | ||
max-width: none; | ||
} | ||
} | ||
</style> | ||
<p class="subtitle"> | ||
Modern CSS framework based on <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox">Flexbox</a> | ||
</p> | ||
|
||
<div class="field"> | ||
<div class="control"> | ||
<input class="input" type="text" placeholder="Input"> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<p class="control"> | ||
<span class="select"> | ||
<select> | ||
<option>Select dropdown</option> | ||
</select> | ||
</span> | ||
</p> | ||
</div> | ||
|
||
<div class="buttons"> | ||
<a class="button is-primary">Primary</a> | ||
<a class="button is-link">Link</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import 'src/styles/variables.scss'; | ||
@import 'bulma/bulma.sass'; | ||
|
||
html, body { | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Set your brand colors | ||
$purple: #8A4D76; | ||
$pink: #FA7C91; | ||
$brown: #757763; | ||
$beige-light: #D0D1CD; | ||
$beige-lighter: #EFF0EB; | ||
|
||
// Update Bulma's global variables | ||
$family-sans-serif: "Nunito", sans-serif; | ||
$grey-dark: $brown; | ||
$grey-light: $beige-light; | ||
$primary: $purple; | ||
$link: $pink; | ||
$widescreen-enabled: false; | ||
$fullhd-enabled: false; | ||
|
||
// Update some of Bulma's component variables | ||
$body-background-color: $beige-lighter; | ||
$control-border-width: 2px; | ||
$input-border-color: transparent; | ||
$input-shadow: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
const sveltePreprocess = require('svelte-preprocess'); | ||
|
||
module.exports = { | ||
preprocess: sveltePreprocess({ | ||
defaults: { | ||
style: 'scss', | ||
}, | ||
scss: { | ||
// We can use a path relative to the root because | ||
// svelte-preprocess automatically adds it to `includePaths` | ||
// if none is defined. | ||
prependData: `@import 'src/styles/variables.scss';`, | ||
}, | ||
}), | ||
}; |