forked from peisan/WasedaMobileProgrammingClass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
64 lines (48 loc) · 861 Bytes
/
Copy pathmain.css
File metadata and controls
64 lines (48 loc) · 861 Bytes
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
/* reset default mergins, colors, fonts, etc */
* {
margin: 0;
padding: 0;
// border: 0;
font-size: 100%;
font-weight: normal;
vertical-align: baseline;
background: transparent
width: 100%;
}
/* colors for valid and invalid form*/
input:valid:not([type=file]) {
border: 1px solid green;
}
input:invalid {
border: 2px solid red;
}
input:focus {
border: 2px solid blue;
}
input[type=image]{
width: 30px;
}
/* media queries */
@media only screen and (orientation: portrait){
}
@media only screen and (orientation: landscape){
}
/* elements */
h1{
border: 20px solid grey;
font-size: 32px;
}
/* CSS Selectors */
/* works only with CSS3 */
input[type=button]{
background-color: red;
}
input:valid:not([type=file]) {
border: 1px solid green;
}
.rounded {
border-radius: 10px;
}
.bordered {
border: 2px solid black;
}