uhr/css/uhr.css

251 lines
4.7 KiB
CSS
Raw Permalink Normal View History

/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2013-11-19 16:55:01 +01:00
@font-face {
2014-08-26 17:49:23 +02:00
font-family: 'Uhrenfont';
src: url('../resources/uhr.woff') format('woff');
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
body {
2014-08-26 17:49:23 +02:00
font-family: 'Uhrenfont', sans-serif;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.uhr {
2014-08-26 17:49:23 +02:00
position: relative;
margin: 0;
transition: background-color 0.5s;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.uhr .reflection {
2014-08-26 17:49:23 +02:00
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: radial-gradient(225em 45em at 160% 0, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 40%) no-repeat scroll;
display: block;
margin: 0.15em;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
#themeswitcher {
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:40:56 +01:00
.uhr .letterarea {
2014-08-26 17:49:23 +02:00
display: block;
position: absolute;
top: 12%;
bottom: 12%;
left: 12%;
right: 12%;
overflow: hidden;
font-size: 200%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.item {
2014-08-26 17:49:23 +02:00
transition: box-shadow 0.5s, text-shadow 0.5s, border-color 0.5s, color 0.5s;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.dot {
2014-08-26 17:49:23 +02:00
position: absolute;
display: block;
height: 0;
width: 0;
border: 0.2em solid;
border-radius: 1em;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.dot.active {
2014-08-26 17:49:23 +02:00
border-color: #eee;
box-shadow: 0 0 0.2em #eee;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.dot1 {
2014-08-26 17:49:23 +02:00
top: 3.75%;
left: 3.75%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.dot2 {
2014-08-26 17:49:23 +02:00
top: 3.75%;
right: 3.75%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.dot3 {
2014-08-26 17:49:23 +02:00
bottom: 3.75%;
right: 3.75%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-27 15:25:34 +01:00
.dot4 {
2014-08-26 17:49:23 +02:00
bottom: 3.75%;
left: 3.75%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.letter {
2014-08-26 17:49:23 +02:00
height: 10%;
width: 9.0909%;
padding: 0;
margin: 0;
display: inline-block;
text-align: center;
line-height: 160%;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.letter.active {
2014-08-26 17:49:23 +02:00
color: #eee;
text-shadow: 0 0 0.2em #eee;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch {
2014-08-26 17:49:23 +02:00
position: relative;
width: 86px;
margin: 1em;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-checkbox {
2014-08-26 17:49:23 +02:00
display: none;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-label {
2014-08-26 17:49:23 +02:00
display: block;
overflow: hidden;
cursor: pointer;
border: 2px solid #999;
border-radius: 50px;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-inner {
2014-08-26 17:49:23 +02:00
width: 200%;
margin-left: -100%;
-moz-transition: margin 0.3s ease-in 0s;
-webkit-transition: margin 0.3s ease-in 0s;
-o-transition: margin 0.3s ease-in 0s;
transition: margin 0.3s ease-in 0s;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-inner:before, .onoffswitch-inner:after {
2014-08-26 17:49:23 +02:00
float: left;
width: 50%;
height: 24px;
padding: 0;
line-height: 24px;
font-size: 18px;
color: white;
font-weight: bold;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-inner:before {
2014-08-26 17:49:23 +02:00
content: "EIN";
padding-left: 12px;
color: #eee;
transition: background-color 0.5s;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
.onoffswitch-inner:after {
2014-08-26 17:49:23 +02:00
content: "AUS";
padding-right: 12px;
background-color: #eee;
color: #999;
text-align: right;
2013-11-19 16:55:01 +01:00
}
.onoffswitch-switch {
2014-08-26 17:49:23 +02:00
width: 30px;
margin: -3px;
background: #fff;
border: 2px solid #999;
border-radius: 50px;
position: absolute;
top: 0;
bottom: 0;
right: 58px;
-moz-transition: all 0.3s ease-in 0s;
-webkit-transition: all 0.3s ease-in 0s;
-o-transition: all 0.3s ease-in 0s;
transition: all 0.3s ease-in 0s;
2013-11-19 16:55:01 +01:00
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
2014-08-26 17:49:23 +02:00
margin-left: 0;
2013-11-19 16:55:01 +01:00
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
2014-08-26 17:49:23 +02:00
right: 0;
2014-08-10 23:14:29 +02:00
}
a.uhr-configlink {
cursor: pointer;
background: url("../resources/settings.png") no-repeat;
width: 24px;
height: 24px;
display: inline-block;
margin: 2px;
}
2014-08-26 17:49:23 +02:00
2014-08-10 23:14:29 +02:00
.uhr-controlpanel {
2014-08-26 17:49:23 +02:00
background-color: rgba(0, 0, 0, 0.5);
2014-08-10 23:14:29 +02:00
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
2014-08-26 17:49:23 +02:00
@media (max-width: 400px) {
.uhr-controlpanel .content {
height: 100%;
}
}
2014-08-26 17:49:23 +02:00
@media (min-width: 401px) {
.uhr-controlpanel .content {
margin-left: auto;
margin-right: auto;
width: 10em;
2014-08-26 17:49:23 +02:00
top: 1em;
border-radius: 0.5em;
box-shadow: 0 0 1em black;
}
}
2014-08-26 17:49:23 +02:00
2014-08-10 23:14:29 +02:00
.uhr-controlpanel .content {
background-color: #fff;
padding: 2em;
position: relative;
}
2014-08-26 17:49:23 +02:00
2014-08-10 23:14:29 +02:00
a.uhr-closecontrolpanel {
cursor: pointer;
display: inline-block;
position: absolute;
right: 3px;
top: 3px;
width: 24px;
height: 24px;
background: url("../resources/close.png") no-repeat;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
#disclaimer {
2014-08-26 17:49:23 +02:00
font-size: 0.5em;
2013-11-19 16:55:01 +01:00
}
2014-08-26 17:49:23 +02:00
2013-11-19 16:55:01 +01:00
#disclaimer a {
2014-08-26 17:49:23 +02:00
color: #444;
text-decoration: underline;
2013-11-19 16:55:01 +01:00
}