Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
339
gaia/apps/clock/style/alarm.css
Executable file
|
|
@ -0,0 +1,339 @@
|
|||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#alarm-name {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
ul.compact {
|
||||
padding: 1rem 1.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
ul.compact li {
|
||||
position: relative;
|
||||
min-height: 5rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 0.1rem solid #232626;
|
||||
}
|
||||
|
||||
ul.compact li:first-child {
|
||||
border: none;
|
||||
}
|
||||
|
||||
ul.compact li:last-child {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
ul.compact li label {
|
||||
padding: 0 1.5rem 0.5rem;
|
||||
color: #9a9898;
|
||||
font-size: 1.6rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
ul.compact li label:active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#alarm-new {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border: none;
|
||||
margin-top: 2.1rem;
|
||||
margin-right: 1.5rem;
|
||||
|
||||
background: url(images/add_alarm.png) no-repeat center / 3rem;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
#edit-alarm {
|
||||
overflow-x: hidden;
|
||||
height: calc(100% - 7rem);
|
||||
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#alarm-volume-input {
|
||||
width: 100%;
|
||||
margin: 1rem 0 1.5rem;
|
||||
}
|
||||
|
||||
.new #delete-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#time-select {
|
||||
/* Bug 1117652: copypaste bubble would be triggered if tapping or longpressing
|
||||
on the input field, so we let the cursor out of the screen to
|
||||
prevent it. */
|
||||
text-indent: 110%;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. COMPLEX: Scoped style-sheets within <gaia-header>
|
||||
* trump all other rules. !important is required
|
||||
* for an app to over-ride the default appearance
|
||||
* of content within the custom-element. This may
|
||||
* change when we get `:host` and `:content` selectors
|
||||
* in shadow-dom.
|
||||
*/
|
||||
|
||||
section[role="region"] > gaia-header h1.edit-alarm-title {
|
||||
display: block !important; /* 1 */
|
||||
}
|
||||
section[role="region"] > gaia-header h1.new-alarm-title {
|
||||
display: none !important; /* 1 */
|
||||
}
|
||||
section[role="region"].new > gaia-header h1.edit-alarm-title {
|
||||
display: none !important; /* 1 */
|
||||
}
|
||||
section[role="region"].new > gaia-header h1.new-alarm-title {
|
||||
display: block !important; /* 1 */
|
||||
}
|
||||
|
||||
/* ----------- Alarm List ---------- */
|
||||
#alarms {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: calc(100% - 22rem);
|
||||
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
ul#alarms li.alarm-cell:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 1.5rem;
|
||||
width: calc(100% - 3rem);
|
||||
height: .1rem;
|
||||
background-color: rgba(115, 125, 128, 0.2);
|
||||
}
|
||||
|
||||
ul#alarms li.alarm-cell { /* 6rem, including a 0.13rem border */
|
||||
position: relative;
|
||||
height: 6rem;
|
||||
}
|
||||
|
||||
ul#alarms li.alarm-cell > a:active {
|
||||
background-color: rgba(52,140,158, .6);
|
||||
}
|
||||
|
||||
ul#alarms li.alarm-cell > a:active {
|
||||
color: #cfe2e5;
|
||||
}
|
||||
|
||||
ul#alarms li.alarm-cell label:active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#alarms .alarmEnable {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
||||
width: calc(8.13rem);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#alarms .alarmEnable input[type="checkbox"] + span {
|
||||
position: absolute;
|
||||
top: calc(50% - 1.7rem);
|
||||
right: 1.5rem;
|
||||
|
||||
width: 3.4rem;
|
||||
height: 3.4rem;
|
||||
margin: 0;
|
||||
|
||||
background: url(images/alarm_off.png) no-repeat center top / 3.4rem;
|
||||
}
|
||||
#alarms .alarmEnable input[type="checkbox"]:checked + span {
|
||||
border-color: #00acce;
|
||||
background: url(images/alarm_on.png) no-repeat center top / 3.4rem;
|
||||
}
|
||||
|
||||
#alarms .alarmEnable > input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#alarms a.alarm-item {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
font: lighter 1.4rem sans-serif;
|
||||
color: #737D80;
|
||||
}
|
||||
|
||||
#alarms a.alarm-item:active {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
a.alarm-item > span {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
a.alarm-item > .time {
|
||||
position: absolute;
|
||||
top: 1.0rem;
|
||||
left: 1.7rem;
|
||||
font-size: 2.8rem;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
color: #cfe2e5;
|
||||
}
|
||||
|
||||
a.alarm-item small {
|
||||
font-size: 1.4rem;
|
||||
font-weight: normal;
|
||||
color: #5C6466;
|
||||
}
|
||||
|
||||
a.alarm-item > .label {
|
||||
position: absolute;
|
||||
left: 12.5rem;
|
||||
right: 4.5rem;
|
||||
top: 2.35rem;
|
||||
font-family: sans-serif;
|
||||
font-weight: normal;
|
||||
color: #737D80;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
a.alarm-item > .repeat {
|
||||
position: absolute;
|
||||
top: 4.2rem;
|
||||
left: 1.7rem;
|
||||
font-family: sans-serif;
|
||||
font-weight: normal;
|
||||
text-overflow: ellipsis;
|
||||
color: #A1B0B2;
|
||||
}
|
||||
|
||||
a.alarm-item.with-repeat > .time {
|
||||
top: 0.3rem;
|
||||
}
|
||||
|
||||
a.alarm-item.with-repeat > .label {
|
||||
top: 1.65rem;
|
||||
}
|
||||
|
||||
a.alarm-item.with-repeat > .repeat {
|
||||
top: 3.6rem;
|
||||
}
|
||||
|
||||
#digital-clock.visible ~ #alarms.count4 li:first-child {
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* These range input values were taken from the System App and
|
||||
* retooled for the dark theme currently used by Clock. When
|
||||
* changing to a light theme in the UI overhaul, it may make
|
||||
* sense to pull this directly from System again.
|
||||
*/
|
||||
|
||||
input[type=range] {
|
||||
-moz-appearance: none;
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
input[type=range]:-moz-focusring {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
ul li > label input[type="range"] {
|
||||
position: relative;
|
||||
top: calc(50% - 1.5rem);
|
||||
left: 5rem;
|
||||
right: 7rem;
|
||||
height: 3rem;
|
||||
width: calc(100% - 15rem);
|
||||
}
|
||||
|
||||
input[type=range]::-moz-range-track {
|
||||
height: 0.1rem;
|
||||
background-color: #7e7e7e;
|
||||
}
|
||||
|
||||
input[type=range]::-moz-range-progress {
|
||||
height: 0.3rem;
|
||||
background-color: #01c5ed;
|
||||
}
|
||||
|
||||
input[type=range]::-moz-range-thumb {
|
||||
width: 2.8rem;
|
||||
height: 2.8rem;
|
||||
border: solid 0.1rem transparent;
|
||||
border-radius: 3rem;
|
||||
transition: border 0.15s ease;
|
||||
-moz-box-sizing: border-box;
|
||||
background: #fff no-repeat 50% 50%;
|
||||
background-size: 2.8rem 2.8rem;
|
||||
}
|
||||
|
||||
input[type=range]:active::-moz-range-thumb {
|
||||
border: solid 0.4rem #01c5ed;
|
||||
}
|
||||
|
||||
#alarm-delete {
|
||||
border-radius: 2rem;
|
||||
background-color: #e51e1e;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* RTL View */
|
||||
html[dir=rtl] #alarm-new {
|
||||
margin-left: 1.5rem;
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
html[dir=rtl] #alarms .alarmEnable {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
html[dir=rtl] a.alarm-item > .time {
|
||||
left: auto;
|
||||
right: 1.7rem;
|
||||
|
||||
}
|
||||
html[dir=rtl] a.alarm-item > .label {
|
||||
left: 4.5rem;
|
||||
right: 12.5rem;
|
||||
}
|
||||
html[dir=rtl] a.alarm-item > .repeat {
|
||||
left: auto;
|
||||
right: 1.7rem;
|
||||
}
|
||||
html[dir=rtl] a.alarm-item > .repeat {
|
||||
left: auto;
|
||||
right: 1.7rem;
|
||||
}
|
||||
html[dir=rtl] #alarms .alarmEnable input[type="checkbox"] + span {
|
||||
left: 1.5rem;
|
||||
right: auto;
|
||||
}
|
||||
189
gaia/apps/clock/style/clock.css
Executable file
|
|
@ -0,0 +1,189 @@
|
|||
@import url('../shared/style/input_areas.css');
|
||||
@import url('../shared/style/buttons.css');
|
||||
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
background-color: #000;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
/* Absolutely-positioned elements don't inherit -moz-user-select. */
|
||||
#clock-tabs {
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
#clock-view {
|
||||
width: 100%;
|
||||
height: calc(100% - 0.13rem);
|
||||
|
||||
color: black;
|
||||
}
|
||||
|
||||
.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#clock-time {
|
||||
letter-spacing: -0.5rem;
|
||||
font-weight: 300;
|
||||
font-size: 11rem;
|
||||
color: #CFE2E6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#clock-time small {
|
||||
font-weight: 300;
|
||||
font-size: 3.7rem;
|
||||
color: #5C6466;
|
||||
text-transform: uppercase;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#clock-day-date {
|
||||
font-weight: 300;
|
||||
font-size: 2.1rem;
|
||||
margin: 2.6rem 0 0 1.5rem;
|
||||
line-height: 1.7rem;
|
||||
position: absolute;
|
||||
color: #737D80;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
#clock-day-date b {
|
||||
font-weight: normal;
|
||||
color: #A1B0B2;
|
||||
}
|
||||
|
||||
/* digital clock */
|
||||
#digital-clock {
|
||||
display: none;
|
||||
margin-top: 6.50rem;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#digital-clock.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#digital-clock-face {
|
||||
font-weight: 300;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/* analog clock */
|
||||
#analog-clock {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#analog-clock.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Make sure the rotating hand elements are never clickable outside of our box */
|
||||
#analog-clock-container {
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#analog-clock-container.large {
|
||||
width: 27rem;
|
||||
height: 27rem;
|
||||
margin: 6.9rem auto 0;
|
||||
}
|
||||
|
||||
#analog-clock-container.medium {
|
||||
width: 21.8rem;
|
||||
height: 21.8rem;
|
||||
margin: 6.8rem auto 0;
|
||||
}
|
||||
|
||||
#analog-clock-container.small {
|
||||
width: 14.8rem;
|
||||
height: 14.8rem;
|
||||
margin: 5.8rem auto 0;
|
||||
}
|
||||
|
||||
#analog-clock-face {
|
||||
position: relative;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background-image: url('images/analog_clock_face.svg');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
#analog-clock-hands {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-top: 1.5%; /* to correctly snap the hands to the face */
|
||||
}
|
||||
|
||||
.analog-clock-hand {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
#secondhand {
|
||||
background-image: url('images/analog_clock_second_hand.svg');
|
||||
}
|
||||
|
||||
#minutehand {
|
||||
background-image: url('images/analog_clock_minute_hand.svg');
|
||||
}
|
||||
|
||||
#hourhand {
|
||||
background-image: url('images/analog_clock_hour_hand.svg');
|
||||
}
|
||||
|
||||
/* banner*/
|
||||
#banner-countdown {
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
-moz-transition: opacity 600ms ease;
|
||||
}
|
||||
#banner-countdown.visible {
|
||||
z-index: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#banner-countdown strong {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* localization */
|
||||
body.hidden *[data-l10n-id] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* RTL View */
|
||||
html[dir=rtl] #clock-day-date {
|
||||
margin-left: 0;
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
4
gaia/apps/clock/style/form_button.css
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
.form-button-hide {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
}
|
||||
17
gaia/apps/clock/style/hacks.css
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Clock Hacks: Place any temporary, horrible, or otherwise sad
|
||||
* but depressingly needed CSS hacks in this file. Review this
|
||||
* file regularly to see if any of these temporary fixes can later
|
||||
* be removed.
|
||||
*
|
||||
* NOTE: This file is included after all other styles, so that
|
||||
* you can override other styles without using !important.
|
||||
*/
|
||||
|
||||
|
||||
/* This tab override CSS should be removed when you change the app
|
||||
layout to correctly use the BB tabs CSS. See bug 1017398. */
|
||||
.bb-tablist > li > a[aria-selected="true"] {
|
||||
color: #0AC;
|
||||
font-weight: 500;
|
||||
}
|
||||
BIN
gaia/apps/clock/style/icons/clock_126.png
Executable file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
gaia/apps/clock/style/icons/clock_142.png
Executable file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
gaia/apps/clock/style/icons/clock_189.png
Executable file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
gaia/apps/clock/style/icons/clock_284.png
Executable file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
gaia/apps/clock/style/icons/clock_84.png
Executable file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
gaia/apps/clock/style/images/add_alarm.png
Executable file
|
After Width: | Height: | Size: 393 B |
BIN
gaia/apps/clock/style/images/add_alarm@1.5x.png
Executable file
|
After Width: | Height: | Size: 521 B |
BIN
gaia/apps/clock/style/images/add_alarm@2.25x.png
Executable file
|
After Width: | Height: | Size: 759 B |
BIN
gaia/apps/clock/style/images/add_alarm@2x.png
Executable file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
gaia/apps/clock/style/images/alarm_off.png
Executable file
|
After Width: | Height: | Size: 487 B |
BIN
gaia/apps/clock/style/images/alarm_off@1.5x.png
Executable file
|
After Width: | Height: | Size: 892 B |
BIN
gaia/apps/clock/style/images/alarm_off@2.25x.png
Executable file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
gaia/apps/clock/style/images/alarm_off@2x.png
Executable file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
gaia/apps/clock/style/images/alarm_on.png
Executable file
|
After Width: | Height: | Size: 612 B |
BIN
gaia/apps/clock/style/images/alarm_on@1.5x.png
Executable file
|
After Width: | Height: | Size: 970 B |
BIN
gaia/apps/clock/style/images/alarm_on@2.25x.png
Executable file
|
After Width: | Height: | Size: 1.5 KiB |