forked from stevemckinney/customizer-hero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
141 lines (119 loc) · 3.2 KB
/
style.css
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
Theme Name: customizer-hero
Theme URI: https://iamsteve.me
Author: Steve McKinney
Author URI: https://iamsteve.me
Description: This theme is purely to demonstrate editing a specific area of a website with customizer. It's not a fully functional theme in anyway. You can take the contents and generally drop them in with your theme.
Version: 1.0.0
Text Domain: customizer-hero
*/
/* Reset
* --------------------------- */
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; }
a { background: transparent; text-decoration: none; }
a:active, a:hover { outline: 0; }
img { border: 0; }
input, button, textarea, select { -webkit-appearance: none; -moz-appearance: none; }
h1, h2, h3, h4, h5, h6, p { margin-top: 0; }
/* Colour reference
* --------------------------- */
.light-blue { color: #c3f2f5; }
.dark-purple { color: #4e3e68; }
.light-purple { color: #6a6384; }
.orange { color: #f96f52; }
.shadow { color: rgba(0, 70, 75, .2); }
/* Basic setup
* --------------------------- */
body {
color: #6a6384;
background-color: #c3f2f5;
font-size: 100%;
font-family: 'Merriweather', Georgia, serif;
line-height: 1.5; }
/* Hero
* --------------------------- */
.hero {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
min-height: 100vh; }
/* Hero content
* --------------------------- */
.hero-content {
padding: 12px;
max-width: 192px; }
@media (min-width: 502px) {
.hero-content {
padding: 24px;
flex: 1 1 50%;
max-width: 416px; } }
/* Hero title
* --------------------------- */
.hero-title {
color: #4e3e68;
font: 800 24px/1 'Raleway', Helvetica, Arial, sans-serif;
letter-spacing: -.025em;
margin-bottom: 12px; }
@media (min-width: 502px) {
.hero-title {
font-size: 30px; } }
@media (min-width: 560px) {
.hero-title {
font-weight: 900;
font-size: 36px; } }
@media (min-width: 720px) {
.hero-title {
font-size: 48px; } }
/* Hero description
* --------------------------- */
.hero-description {
font-size: 12px; }
.hero-description p {
-webkit-hyphens: auto;
hyphens: auto;
margin-bottom: 12px; }
.hero-description p:last-child {
margin-bottom: 0; }
@media (min-width: 502px) {
.hero-description {
font-size: 14px; } }
@media (min-width: 720px) {
.hero-description {
font-size: 18px; } }
/* Hero image
* --------------------------- */
.hero-image {
flex: 1 1 40%;
max-width: 540px;
overflow: hidden; }
.hero-image img {
display: block;
width: 540px;
height: auto; }
/* Button
* --------------------------- */
.button {
display: inline-block;
padding: 9px 24px;
font: 700 12px/normal 'Raleway', sans-serif;
color: #fff;
background-color: #f96f52;
box-shadow: inset 0 0 0 2px #4e3e68, 0 4px rgba(0, 70, 75, .2);
border-radius: 40px;
transition: .2s ease-in; }
.button:hover,
.button:focus {
background-color: #f9524e; }
.button:active {
box-shadow: inset 0 0 0 2px #4e3e68; }
@media (min-width: 502px) {
.button {
font-size: 14px;
padding: 11px 32px; } }
@media (min-width: 720px) {
.button {
font-size: 18px;
padding: 13px 36px 14px; } }