|
9 | 9 | */ |
10 | 10 |
|
11 | 11 | /* |
12 | | - NOTE FROM REVOLUNET : |
| 12 | + NOTE FROM REVOLUNET : |
13 | 13 | Only Bootstrap styles needed for PythonBooks are here. |
14 | 14 | */ |
15 | 15 |
|
@@ -118,6 +118,145 @@ body { |
118 | 118 | color: #333333; |
119 | 119 | background-color: #ffffff; |
120 | 120 | } |
| 121 | + |
| 122 | +/* css for loader */ |
| 123 | +#loader-wrapper { |
| 124 | + position: relative; |
| 125 | + top:0; |
| 126 | + left:0; |
| 127 | + width:100%; |
| 128 | + height: 100%; |
| 129 | +} |
| 130 | + |
| 131 | +#loader{ |
| 132 | + display: block; |
| 133 | + position: absolute; |
| 134 | + left: 50%; |
| 135 | + top: 50%; |
| 136 | + width: 150px; |
| 137 | + height: 150px; |
| 138 | + margin: -75px 0 0 -75px; |
| 139 | + margin-top: 100px; |
| 140 | + border: 6px solid transparent; |
| 141 | + border-radius: 50%; |
| 142 | + border-top-color:#3498db; |
| 143 | + z-index: 10001; |
| 144 | + |
| 145 | + -webkit-animation: spin 1.5s linear infinite; |
| 146 | + animation: spin 1.5s linear infinite; |
| 147 | +} |
| 148 | + |
| 149 | +#loader::before { |
| 150 | + content:""; |
| 151 | + position: absolute; |
| 152 | + top:5px; |
| 153 | + left:5px; |
| 154 | + right:5px; |
| 155 | + bottom:5px; |
| 156 | + border:6px solid transparent; |
| 157 | + border-radius: 50%; |
| 158 | + border-top-color:#e74c3c; |
| 159 | + |
| 160 | + -webkit-animation: spin 1.5s linear infinite; |
| 161 | + animation: spin 1.5s linear infinite; |
| 162 | +} |
| 163 | + |
| 164 | +#loader::after { |
| 165 | + content:""; |
| 166 | + position: absolute; |
| 167 | + top:15px; |
| 168 | + left:15px; |
| 169 | + right:15px; |
| 170 | + bottom:15px; |
| 171 | + border:6px solid transparent; |
| 172 | + border-radius: 50%; |
| 173 | + border-top-color: #f9c922; |
| 174 | + |
| 175 | + -webkit-animation: spin 1.5s linear infinite; |
| 176 | + animation: spin 1.5s linear infinite; |
| 177 | +} |
| 178 | + |
| 179 | +@-webkit-keyframes spin{ |
| 180 | + 0% { |
| 181 | + -webkit-transform: rotate(0deg); |
| 182 | + -ms-transform: rotate(0deg); |
| 183 | + transform: rotate(0deg); |
| 184 | + } |
| 185 | + 100% { |
| 186 | + -webkit-transform: rotate(360deg); |
| 187 | + -ms-transform: rotate(360deg); |
| 188 | + transform: rotate(360deg); |
| 189 | + } |
| 190 | +} |
| 191 | + |
| 192 | +@keyframes spin { |
| 193 | + 0% { |
| 194 | + -webkit-transform: rotate(0deg); |
| 195 | + -ms-transform: rotate(0deg); |
| 196 | + transform: rotate(0deg); |
| 197 | + } |
| 198 | + 100% { |
| 199 | + -webkit-transform: rotate(360deg); |
| 200 | + -ms-transform: rotate(360deg); |
| 201 | + transform: rotate(360deg); |
| 202 | + } |
| 203 | +} |
| 204 | + |
| 205 | +#loader-wrapper .loader-section { |
| 206 | + position: fixed; |
| 207 | + top: 0; |
| 208 | + width: 50%; |
| 209 | + height: 100%; |
| 210 | + background-color: #000; |
| 211 | + z-index: 10000; |
| 212 | +} |
| 213 | + |
| 214 | +#loader-wrapper .loader-section.section-left { |
| 215 | + left: 0; |
| 216 | +} |
| 217 | + |
| 218 | +#loader-wrapper .loader-section.section-right { |
| 219 | + right: 0; |
| 220 | +} |
| 221 | + |
| 222 | +/* Loaded */ |
| 223 | +.loaded #loader-wrapper .loader-section.section-left { |
| 224 | + -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ |
| 225 | + -ms-transform: translateX(-100%); /* IE 9 */ |
| 226 | + transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */ |
| 227 | + |
| 228 | + -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
| 229 | + transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
| 230 | +} |
| 231 | + |
| 232 | +.loaded #loader-wrapper .loader-section.section-right { |
| 233 | + -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */ |
| 234 | + -ms-transform: translateX(100%); /* IE 9 */ |
| 235 | + transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */ |
| 236 | + |
| 237 | + -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
| 238 | + transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
| 239 | +} |
| 240 | + |
| 241 | +.loaded #loader { |
| 242 | + opacity: 0; |
| 243 | + -webkit-transition: all 0.3s ease-out; |
| 244 | + transition: all 0.3s ease-out; |
| 245 | +} |
| 246 | + |
| 247 | +.loaded #loader-wrapper{ |
| 248 | + visibility: hidden; |
| 249 | +} |
| 250 | + |
| 251 | +.no-js #loader-wrapper { |
| 252 | + display: none; |
| 253 | +} |
| 254 | +.no-js h1 { |
| 255 | + color: #222222; |
| 256 | +} |
| 257 | + |
| 258 | +/* end of css for loader */ |
| 259 | + |
121 | 260 | a { |
122 | 261 | color: #0088cc; |
123 | 262 | text-decoration: none; |
@@ -1292,7 +1431,7 @@ a.jsbookslinks { |
1292 | 1431 | width: 140px; |
1293 | 1432 | height: 184px; |
1294 | 1433 | background: rgba(54, 109, 156,.9) url('../img/view.png') no-repeat center; |
1295 | | - z-index: 10; |
| 1434 | + z-index: 5; |
1296 | 1435 | -webkit-transition:opacity .2s linear; |
1297 | 1436 | -moz-transition:opacity .2s linear; |
1298 | 1437 | -o-transition:opacity .2s linear; |
@@ -1668,7 +1807,7 @@ ul#social_buttons li a:hover { |
1668 | 1807 | width: 140px; |
1669 | 1808 | height: 184px; |
1670 | 1809 | } |
1671 | | - |
| 1810 | + |
1672 | 1811 | } |
1673 | 1812 |
|
1674 | 1813 | @media (min-width: 768px) and (max-width: 979px) { |
|
0 commit comments