-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewtab.css
149 lines (127 loc) · 3.17 KB
/
newtab.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: var(--wallpaper-color, black); /* Set the background color */
/*
background-image: url('https://source.unsplash.com/random?nature');
background-size:cover;
background-repeat: no-repeat;
*/
}
.disabled {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}
/* STP CONTAINER CLASSES */
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
background-color: var(--wallpaper-color, black); /* Set the background color */
/*
background-image: url('https://source.unsplash.com/random?nature');
background-size:cover;
background-repeat: no-repeat;
*/
}
/* STP CONTAINER ELEMENTS */
.quote {
font-size: 24px;
color: var(--text-color, white);
margin-bottom: 20px;
}
.time {
font-size: 48px;
color: var(--text-color, white);
margin-bottom: 20px;
}
.weather {
font-size: 24px;
color: var(--text-color, white);
}
.topSites {
font-size: 24px;
color: var(--text-color, white);
}
.container {
position: relative;
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.settings-icon {
position: fixed;
top: 10px;
right: 10px;
z-index: 9999;
opacity: 0;
animation-name: fade-in;
animation-duration: 1s;
animation-delay: 1.5s;
animation-fill-mode: forwards;
}
/* POPUP */
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
height: 425px;
background-color: var(--wallpaper-color, white);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
z-index: 9999;
display: none;
}
.popup iframe {
width: 100%;
height: 100%;
border: none;
}
.popup.show {
display: block;
}
/* TOP SITES */
.top-sites {
display: grid;
grid-template-columns: repeat(9, 1fr); /* Display 8 sites per row */
gap: 10px; /* Adjust the gap between site containers */
}
.site-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100px; /* Adjust the width of the site container */
height: 100px; /* Adjust the height of the site container */
background-color: var(--text-color, white); /* Set the background color of the site container */
border-radius: 10px; /* Apply rounded corners to the site container */
text-align: center;
overflow: hidden;
}
.site-favicon {
width: 32px; /* Adjust the width of the favicon */
height: 32px; /* Adjust the height of the favicon */
}
.site-title {
width: 100%;
margin-top: 5px; /* Adjust the margin between the favicon and the site title */
font-size: 12px; /* Adjust the font size of the site title */
color: var(--wallpaper-color, black); /* Set the color of the site title */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.container, .quote, .time, .weather, .top-sites {
opacity: 0;
animation: fade-in 1.5s ease-in-out forwards;
}