-
Notifications
You must be signed in to change notification settings - Fork 0
/
card_form_style.css
115 lines (98 loc) · 2.37 KB
/
card_form_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
.cardModal {
/*display: none; /* Hidden by default */
/*position: fixed; /* Stay in place */
/*z-index: 1; /* Sit on top */
/*left: 0;
/*top: 0; */
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.cardModal-content {
background-color: #fefefe;
margin: 15px auto; /* 15% from the top and centered */
width: 80%; /* Could be more or less, depending on screen size */
padding: 26px;
}
/* The Close Button */
.cardClose {
/* Position it in the top right corner outside of the modal */
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
/* Close button on hover */
.cardClose:hover,
.cardClose:focus {
color: red;
cursor: pointer;
}
/* Bordered form */
form.cards {
}
/* Full-width inputs */
input.cards {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
/* Set a style for all buttons */
button.cards {
background-color: red;
color: white;
padding: 14px 40px;
display: inline-block;
margin: 8px auto;
margin-right: 8px;
border: none;
cursor: pointer;
width: 200px;
height: 60px;
}
/* Add a hover effect for buttons */
button.cards:hover {
opacity: 0.8;
}
fieldset legend {
background: #1F497D;
color: #fff;
padding: 5px 10px ;
font-size: 24px;
border-radius: 5px;
box-shadow: 0 0 0 5px #ddd;
margin-left: 20px;
width: auto;
}
fieldset {
font-family: sans-serif;
border: 5px solid #ddd;
/*background: #ddd;
/* background-color: rgba(0,0,0,0.1); */
border-radius: 5px;
padding: 15px;
}
/* Add Zoom Animation */
.animate {
-webkit-animation: animatezoom 0.6s;
animation: animatezoom 0.6s;
}
@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0);
transform: scale(0)}
to {-webkit-transform: scale(1);
transform: scale(1)}
}
@keyframes animatezoom {
from {transform: scale(0)}
to {transform: scale(1)}
}