mirror of
https://github.com/Damillora/Rinze.git
synced 2024-12-03 16:17:32 +00:00
Move backgrounds back to Rinze
This commit is contained in:
parent
b85c38a468
commit
18a47f1891
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"[svelte]": {
|
||||
"editor.defaultFormatter": "svelte.svelte-vscode"
|
||||
}
|
||||
}
|
2
src/node_modules/components/FloatingYuriko.svelte
generated
vendored
2
src/node_modules/components/FloatingYuriko.svelte
generated
vendored
@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { Howl, Howler } from "howler";
|
||||
import { Howl } from "howler";
|
||||
function yurikoSound() {
|
||||
var sound = new Howl({
|
||||
src: "/yuriko.ogg",
|
||||
|
2
src/node_modules/components/Header.svelte
generated
vendored
2
src/node_modules/components/Header.svelte
generated
vendored
@ -16,7 +16,7 @@
|
||||
|
||||
<div>
|
||||
<div class:site-header={true} class:enabled={menu_shown} class:detached>
|
||||
<div class:site-header__background={true} class:site-header__background--enabled={menu_shown} class:site-header__background--yuriko={isYurikoBirthday()} />
|
||||
<div class:site-header__background={true} class:site-header__background--enabled={menu_shown} class:background-nanaomoe={true} class:background-nanaomoe--yuriko={isYurikoBirthday()} />
|
||||
<div class="site-header__inner">
|
||||
<header class="header">
|
||||
<div class="header__top">
|
||||
|
2
src/node_modules/components/PageHeader.svelte
generated
vendored
2
src/node_modules/components/PageHeader.svelte
generated
vendored
@ -3,7 +3,7 @@
|
||||
</script>
|
||||
|
||||
<div class="page-header">
|
||||
<div class:page-header__background={true} class:page-header__background--yuriko={isYurikoBirthday()} >
|
||||
<div class:page-header__background={true} class:background-nanaomoe={true} class:background-nanaomoe--yuriko={isYurikoBirthday()} >
|
||||
<div class="page-header__overlay" />
|
||||
</div>
|
||||
<div class="page-header__contents">
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
<style lang="scss" global>
|
||||
@import "~@damillora/shian/dist/app.css";
|
||||
@import "../sass/background";
|
||||
</style>
|
||||
|
||||
<Header></Header>
|
||||
|
14
src/sass/_responsive.scss
Normal file
14
src/sass/_responsive.scss
Normal file
@ -0,0 +1,14 @@
|
||||
@mixin screen($point) {
|
||||
@if $point == xl {
|
||||
@media screen and (min-width: 1280px) { @content ; }
|
||||
}
|
||||
@else if $point == lg {
|
||||
@media (min-width: 1024px) { @content ; }
|
||||
}
|
||||
@else if $point == md {
|
||||
@media (min-width: 768px) { @content ; }
|
||||
}
|
||||
@else if $point == sm {
|
||||
@media (min-width: 640px) { @content ; }
|
||||
}
|
||||
}
|
11
src/sass/background.scss
Normal file
11
src/sass/background.scss
Normal file
@ -0,0 +1,11 @@
|
||||
@import "responsive";
|
||||
@import "backgrounds/283-yuika";
|
||||
@import "backgrounds/765-yuriko";
|
||||
|
||||
.background-nanaomoe {
|
||||
@include bg-283-yuika;
|
||||
|
||||
&--yuriko {
|
||||
@include bg-765-yuriko;
|
||||
}
|
||||
}
|
17
src/sass/backgrounds/_283-yuika.scss
Normal file
17
src/sass/backgrounds/_283-yuika.scss
Normal file
@ -0,0 +1,17 @@
|
||||
@mixin bg-283-yuika() {
|
||||
background-image: url('/images/bg/283-yuika/bg-sm.jpg');
|
||||
background-size: cover;
|
||||
background-position: right 25% top 20%;
|
||||
@include screen(sm) {
|
||||
background-image: url('/images/bg/283-yuika/bg-md.jpg');
|
||||
}
|
||||
@include screen(md) {
|
||||
background-image: url('/images/bg/283-yuika/bg-lg.jpg');
|
||||
}
|
||||
@include screen(lg) {
|
||||
background-image: url('/images/bg/283-yuika/bg-xl.jpg');
|
||||
}
|
||||
@include screen(xl) {
|
||||
background-image: url('/images/bg/283-yuika/bg-xxl.jpg')
|
||||
}
|
||||
}
|
17
src/sass/backgrounds/_765-yuriko.scss
Normal file
17
src/sass/backgrounds/_765-yuriko.scss
Normal file
@ -0,0 +1,17 @@
|
||||
@mixin bg-765-yuriko() {
|
||||
background-image: url('/images/bg/765-yuriko/bg-sm.jpg');
|
||||
background-size: cover;
|
||||
background-position: right 25% top 20%;
|
||||
@include screen(sm) {
|
||||
background-image: url('/images/bg/765-yuriko/bg-md.jpg');
|
||||
}
|
||||
@include screen(md) {
|
||||
background-image: url('/images/bg/765-yuriko/bg-lg.jpg');
|
||||
}
|
||||
@include screen(lg) {
|
||||
background-image: url('/images/bg/765-yuriko/bg-xl.jpg');
|
||||
}
|
||||
@include screen(xl) {
|
||||
background-image: url('/images/bg/765-yuriko/bg-xxl.jpg')
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user