Welcome to mirror list, hosted at ThFree Co, Russian Federation.

page.scss « sass « assets « static - github.com/aerohub/hugo-identity-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e90e6a4e1addcbaad86577360c3cc170bf0da47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@import 'libs/vars';
@import 'libs/functions';
@import 'libs/mixins';
@import 'libs/skel';

///
/// Identity by HTML5 UP
/// html5up.net | @n33co
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Basic */

	// Ensures page width is always >=320px.
		@include breakpoint(xsmall) {
			html, body {
				min-width: 320px;
			}
		}

	body {

		// Prevents animation/transition "flicker" on page load.
		// Automatically added/removed by js/main.js.
			&.is-loading {
				*, *:before, *:after {
					@include vendor('animation', 'none !important');
					@include vendor('transition', 'none !important');
				}
			}

	}

	html {
		height: 100%;
	}

	body {
		height: 100%;
		background-color: _palette(bg);
		@include vendor('background-image', (
			'url("images/overlay.png")',
			'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})',
			'url("../../images/backgrounds/bg1.jpg")'
		));
		background-repeat:		repeat,			no-repeat,			no-repeat;
		background-size:		100px 100px,	cover,				cover;
		background-position:	top left,		center center,		bottom center;
		background-attachment:	fixed,			fixed,				fixed;

		&:after {
			content: '';
			display: block;
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: inherit;
			opacity: 0;
			z-index: 1;

			background-color: _palette(bg);
			@include vendor('background-image', (
				'url("images/overlay.png")',
				'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})'
			));
			background-repeat:		repeat,			no-repeat;
			background-size:		100px 100px,	cover;
			background-position:	top left,		center center;

			@include vendor('transition', 'opacity #{_duration(bg)} ease-out');
		}

		&.is-loading {
			&:after {
				opacity: 1;
			}
		}
	}