-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.css
69 lines (62 loc) · 1.63 KB
/
global.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
/*
* File: global.css
* Programmer: Clayton Smith, Clayton_smith@student.uml.edu
* Assignment: 4
* Copyright (c) 2014 by Clayton K. Smith.
* All rights reserved. May be freely copied or excerpted for any purpose with
* credit to the author.
*
* Creation Date: 10/1/2014 (MM/DD/YYYY)
*/
@import url(http://fonts.googleapis.com/css?family=Oxygen:400,300,700);
/* sets the background of the webpage */
body {
background: #f1c40f;
font-family: "Oxygen", helvetica, arial, sans-serif;
font-size: 1.0625rem;
line-height: 1.875rem;
text-align: center;
padding: 100px 0 0;
}
/* button class */
.button {
background-image: -webkit-linear-gradient(106deg, #f7392b 50%, #ee3022 50%);
background-image: linear-gradient(-16deg, #f7392b 50%, #ee3022 50%);
display: inline-block;
color: #fff;
text-transform: uppercase;
text-decoration: none;
padding: 20px 40px 25px;
position: relative;
max-width: 100%;
}
/* sets the look after the button has been clicked */
.button:after {
content: "";
background: #fff;
height: 1px;
width: 26%;
display: block;
position: absolute;
bottom: 20px;
left: 37%;
transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
}
/* button hover effect */
.button:hover {
color: #fff;
}
/* button hover after */
.button:hover:after {
width: 70%;
left: 15%;
transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
}