-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (111 loc) · 2.11 KB
/
styles.css
File metadata and controls
125 lines (111 loc) · 2.11 KB
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
body {
font: 14px/20px sans-serif;
width: 90%;
margin: 0 auto;
}
pre, code, textarea {
font: monospace;
border: 1px solid #CCC;
border-radius: 3px;
background: #F9F9F9;
padding: 0 3px;
color: #555;
white-space: pre; /* horizontal scroll to text area, if needed */
}
pre, textarea {
padding: 10px;
}
pre {
overflow-x:auto; /* horizontal scroll to code area, if needed */
}
textarea:focus {
outline: none;
}
/*
*/
.container {
display: flex;
}
.element {
text-align: center;
flex: 50%;
}
/* https://stackoverflow.com/questions/18752935/how-to-change-the-css-style-for-phone-and-desktop/18753001 */
@media only screen and (min-width : 320px) and (max-width : 480px) {
.container {
display: inline;
}
.element {
display: inline;
}
}
/*
from <https://sabe.io/tutorials/how-to-create-modal-popup-box>
*/
.modal {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transform: scale(1.1);
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 1rem 1.5rem;
width: 26rem;
border-radius: 0.5rem;
text-align:center;
}
.close-button {
float: right;
width: 1.5rem;
line-height: 1.5rem;
text-align: center;
cursor: pointer;
border-radius: 0.25rem;
background-color: lightgray;
}
.close-button:hover {
background-color: darkgray;
}
.show-modal {
opacity: 1;
visibility: visible;
transform: scale(1.0);
transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
/*
from <https://www.bestcssbuttongenerator.com>
*/
.button-style {
width: 170px;
box-shadow:inset 0px 1px 3px 0px #91b8b3;
background-color:#768d87;
border-radius:5px;
border:1px solid #566963;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:15px;
font-weight:bold;
padding:11px 23px;
text-decoration:none;
text-shadow:0px -1px 0px #2b665e;
}
.button-style:hover {
background-color:#6c7c7c;
}
.button-style:active {
position:relative;
top:1px;
}