-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (97 loc) · 1.51 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
*{
box-sizing: border-box;
}
body{
margin: 0;
padding: 0;
}
#root{
position: relative;
overflow-y: hidden;
width: 100vw;
height: 100vh;
}
#container {
position: absolute;
top: 0;
left: 0;
bottom: 0;
background: linear-gradient(to right, #ccc, yellow, lightblue, white);
width: 7777px;
height: 100vh;
}
.square {
position: absolute;
width: 100px;
top: 250px;
height: 100px;
box-shadow: 2px 2px 5px darkolivegreen;
}
.square p{
position: absolute;
margin: 0;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) rotate(45deg);
color: white;
font-weight: bold;
font-size: 20px;
text-shadow: 1px 1px 3px grey;
}
#k1 {
background: purple;
left: 2000px;
}
#k2 {
background: blue;
right: 50%;
}
#k3 {
background: pink;
right: 2500px;
}
#k4 {
background: darkolivegreen;
right: 2000px;
}
.btns {
position: fixed;
left: 0;
top: 0;
padding-top: 10px;
width: 100vw;
text-align: center;
}
h4{
margin-bottom: 10px;
}
.btn{
display: block;
box-shadow: 1px 1px 4px darkolivegreen;
margin: 0 auto;
padding: .5em;
margin-bottom: 4px;
font-weight: bold;
}
.screen-center{
position: absolute;
top: 0;
left: 50%;
}
.screen-center .square-dash-frame{
position: absolute;
top: 240px;
transform: translateX(-50%);
width: 120px;
height: 120px;
border: 5px dashed tomato;
}
.screen-center .square-dash-frame::after{
position: absolute;
content: 'screen center';
width: 100%;
height: 15px;
left: 0;
bottom: -20px;
text-align: center;
}