mocoapp-browser-extension/src/css/content.scss
Manuel Bouza 72626a6c42
qw/timer (#23)
* Rename logo and add 32x32 version

* Set timer icon if a timer is running

* Do not query activities on initialization

* Show timer in bubble if timed activity exists

* Pass timed activity to App

* Code cleanup

* Show timer view and stop timer

* Make hours optional

* Use booked seconds instead of hours

* Add type submit to form button

* Define colors as sass variables⎄

* Style timer view

* Show start timer submit label

* Update view layouts and content

* Update version and changelog

* Dyanically set iframe height

* Reduce h1 font size

* Add svg webpack loader

* Parse empty string (TimeInputParser)

* Forward ref in Popup component

* Start time on current day only, format buttons

* Improve styling

* Set standard height as iframe default height, validate form

* Upgrade packages to supress react warning

* Show activity form in popup after timer was stoped

* Use stop-watch icon in timer view

* Fix empty description

* Close TimerView if timer stopped for current service

* Style timerview

* Improve timer view styling

* qw/setting-time-tracking-hh-mm (#24)

* Format duration depending on settingTimeTrackingHHMM

* Fix formatDuation without second argument

* Fix time format after updating bubble

* Add tests for formatDuration
2019-10-10 14:57:01 +02:00

83 lines
1.4 KiB
SCSS

@import "variables";
@import "button";
#moco-bx-root {
font-family: $font-family;
color: $font-color;
pointer-events: all;
.text-red {
color: $red;
}
.moco-bx-bubble {
box-sizing: content-box;
position: fixed;
bottom: 2rem;
height: 60px;
width: 60px;
background-color: white;
border-radius: 50%;
box-shadow: -1px -1px 15px 4px rgba(0, 0, 0, 0.05), 2px 2px 15px 4px rgba(0, 0, 0, 0.05);
padding: 5px;
z-index: 9999;
cursor: pointer;
.moco-bx-bubble-inner {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
height: 100%;
img.moco-bx-logo {
width: 30px;
height: 30px;
}
.moco-bx-booked-hours {
display: inline-block;
font-size: 13px;
font-weight: 700;
line-height: 1;
color: black;
text-align: center;
padding: 5px 0 7px;
}
}
}
}
#moco-bx-popup-root {
font-family: $font-family;
color: $font-color;
pointer-events: all;
iframe {
border: 0;
}
h2 {
margin-bottom: 1rem;
}
.moco-bx-popup {
position: fixed;
z-index: 2000;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
z-index: 9999;
.moco-bx-popup-content {
background-color: white;
margin: 0 auto;
}
}
}