9984 Commits

Author SHA1 Message Date
c727
eafd7fb296
Update more-info-updater.html 2018-04-20 05:04:45 +02:00
NovapaX
570cb5d52b add default vacuum component icon (#1108) 2018-04-18 15:46:52 -04:00
NovapaX
afc4663870 allow label-badge-title font-weight theming (#1102)
* allow label-badge-title font-weight theming

* change to 400 weight

kept the variable for those who really prefer the thinness of before.
2018-04-18 14:16:13 -04:00
NovapaX
a5aaaf6a0a icon rename (#1105) 2018-04-18 20:15:31 +02:00
NovapaX
2aa02ff561 Fix chart tooltip format for line charts (#1099)
* position tooltip correctly if chart is in history_graph card

* format & localize title in linechart

* tweak tooltip style/position
2018-04-18 09:44:43 -04:00
NovapaX
0a60ec2298 Fix paper-slider pin style (#1022)
* ha-paper-slider extends and copies paper-slider

* paper-slider -> ha-paper-slider

* remove promise

* this.is -> HaPaperSlider.is

* jsdoc to instruct linter

* suppress missing props

* fix linter

* more lint
2018-04-17 17:24:09 -04:00
NovapaX
cd3136908c classrename (#1097) 2018-04-17 21:17:10 +02:00
Boyi C
5dc9efd995 Unify navigation to NavigateMixin (#1095)
* Unify page navigation to NavigateMixin

* revert unintended change

* Use template literal
2018-04-17 10:01:58 -04:00
NovapaX
8047313165 take zero height (#1089) 2018-04-17 10:00:47 -04:00
NovapaX
5068178aac Some more state wrapping fixes (#1082)
* climate state should never wrap

* some more state wrapping fixes
2018-04-17 10:00:11 -04:00
NovapaX
1335a74605 Setting used paper-colors in ha-style (#1091)
* setting default paper-colors
clean up some whitespace/indentation

* better indentation
2018-04-15 16:16:11 +02:00
NovapaX
027165c8ac Prefix media-player-model and use it for more-info (#1088)
* prefix media player model with hass-
use model for more-info-mplayer

* missed a binding
2018-04-14 18:04:44 -04:00
Boyi C
dc6ca7c774 Change padding logic (#1077) 2018-04-13 21:32:50 -04:00
NovapaX
f40d64d68c Easier theming and also apply theme to date picker (#1041)
* datepicker overlay backgrond

* style vaadin more

* cleanup diff

* make styling easier

* more vars

* sidebar text

* sidebar selected background backward compatible

* indent commented theming var

* fix sidebar text color incompatibility
2018-04-13 21:32:20 -04:00
NovapaX
961f43e4a5 correct max width. give small text some more space. vertical centering. (#1083) 2018-04-13 21:25:17 -04:00
NovapaX
2cf508e0b0 Some little tweaks (old browsers / iOS 9) (#1086)
* fix config panel flex

* fix media player card not shwwing picture

* prevent toggle being compressed / pushed away
2018-04-13 21:16:51 -04:00
Boyi C
57e500b109 Fix flex-box (#1076)
Small tweak styling
2018-04-12 08:58:46 +02:00
NovapaX
bfaebfe418
Pretty huge scrolling performance upgrade (#1069)
* turn ha-cards into its own layer
2018-04-10 09:25:00 +02:00
NovapaX
51f4028343 Fix scrollable clipping controls because of webkit-overflow-scrolling: touch; (#1065)
* change labeled slider

* fix `-webkit-overflow-scrolling: touch` clipping positioned elements

* Revert "change labeled slider"

This reverts commit fc34cb712b24223b9983f8c1ef1b498be86515c0.
2018-04-03 16:47:26 -07:00
Andrey
efa956a0b5 Allow theming badge label color and hide empty label. (#1060) 2018-04-01 12:03:04 -07:00
c727
4c65767e5a Fix TypeError for views (#1045)
* Fix TypeError for views

quick and dirty fix, maybe this file needs some more cleanup

problem:
if you have `default_view` in groups.yaml and reload groups in `computeViewStates(currentView, hass, defaultView)`
`defaultView` is (still) defined but but `hass.states.group.default_view` doesn't exist

Fix: #893

* Update partial-cards.html

* Add ;

* Lint
2018-03-31 17:35:33 -07:00
NovapaX
d7d167fbf9 Make paper-scrollable in fullscreen dialog resize properly (#1052)
* remove min-height to make paper-scrollable work properly.
Hack fullscreen background behind it

* apply fix to hassio-markdown-dialog
2018-03-31 17:32:02 -07:00
NovapaX
d8fb01ab44 Hide empty 'Currently' on climate statecard (#1047)
* hide currently if no value

* zero is falsy. align items

* don't hide falsy values

* computed property instead of observer

* guard null/undefined
2018-03-31 17:29:49 -07:00
Paulus Schoutsen
77330d03b3
Guard for both undefined and null (#1053) 2018-03-31 12:09:22 -07:00
NovapaX
88ad376045 Don't uppercase unit_of_measurement in state-badge (#1025)
* determine unit from state. set case via label-is-state attr

* use css var and classnames

* use classnames and mixin

* use css var

* fallback, both needed and way more elegant
2018-03-29 17:35:51 -07:00
NovapaX
ed0696ea9c hide brightness slider on unavailable light (#1046) 2018-03-29 17:20:51 -07:00
Paulus Schoutsen
d2688cab75 Fix markdown rendering 2018-03-29 16:58:23 -07:00
Paulus Schoutsen
06502cb93a
Fix a bunch of lint errors (#1044)
* Fix a bunch of lint errors

* Add behavior jsdoc

* Convert ha-markdown to polymer element

* Update lint command
2018-03-29 16:57:15 -07:00
Paulus Schoutsen
0e227708b9 Fix tooltip with title on hass-subpage (#1048) 2018-03-30 01:39:53 +02:00
Paulus Schoutsen
e46d2e2934 Fix property 2018-03-28 16:34:39 -07:00
NovapaX
0790cd1ac9 Improve chart loading behaviour and some other chart fixes (#1042)
* show is loading and animate chart display

* let tooltip overflow in more-info

* graph chart tooltip overflow

* style toopltip a bit more like material design guidelines

* smoother tooltip appearing

* timeline transition time

* max-widht -> width
2018-03-28 16:16:25 -07:00
c727
fb8fb09c73 Change attribute checks to handle if value == 0 (#1037)
if (0) is false
2018-03-27 23:57:01 -07:00
Kory Prince
af1581b4c5 Migrate to Marked.js + js-xss for Markdown parsing (#1026)
* Migrate to Marked.js + js-xss for Markdown parsing

* Update JS

Updating JS with latest source code from NPM to ensure it has not been altered
2018-03-26 21:13:54 -07:00
NovapaX
38542e1f0c Set theme variables on html element (#1023)
* set theme on html element

* style toggle buttons with primary color

* Fix lint
2018-03-26 17:31:41 -07:00
NovapaX
d87d845dbc Fix long more-info toolbar title. (#1034)
Max 2-lines. Ellipsis overflow on supported browsers.
2018-03-26 17:28:35 -07:00
PeteBa
7be6d17b37 Change brightness to be real-time rather than max value (#1029) 2018-03-26 21:44:09 +02:00
NovapaX
c04c30337f Contain slots and scope css instead of using ::slotted
Polyfill converts `::slotted(*)` to `host-tag > *` which messes up
styles of descendents that are not slotted.
2018-03-26 10:50:10 +02:00
NovapaX
796ec4a4b0 Use hue, saturation and a brightness filter for state badge (#1021)
* Use hue and saturation values. Use css filter for brightness.

* Assign style properties at once.

* label => if else logic
2018-03-23 10:01:33 -07:00
Adam Mills
e5a5c353c4 Don't render minimum color temp with gray border (#1017) 2018-03-21 15:22:44 -07:00
Adam Mills
0df4aa6117
Use new light HS API for the color picker (#982) 2018-03-21 17:35:16 -04:00
NovapaX
421b9abc7d fix media-player source selection loop (#1012) 2018-03-21 18:20:14 +01:00
NovapaX
b107e0e15c Stop paper-slider to change value on touchdown on the sliderbar (#1006)
* Stop paper-slider to change value on touchdown on the sliderbar.
This prevents interfering with intended scroll. Touch-tap on the
sliderbar still works. Mouse-behavior doesn't change eiter.

* change property syntax
2018-03-19 14:42:51 -07:00
NovapaX
3324c7e01c Nicer scrolling for more-info (#1005)
* nicer more-info scrolling (momentum & rubberband)

* move chart into scrolling region.
Fixes resizing issues of the paper-dialog (and scrolling area) because
of chart rendering after loading.
2018-03-17 17:26:02 -07:00
Andrey
b03c361198 When /states/bad_view is selected - fall back to default view. (#1002) 2018-03-16 15:38:27 -07:00
cdce8p
860860099e Changed cover icon condition (#995) 2018-03-16 03:38:37 +01:00
Paulus Schoutsen
b80c52dab2
Fix race condition setting current language (#996) 2018-03-15 12:33:32 -07:00
Paulus Schoutsen
196ea97917 Use Home Assistant icon for homeassistant domain" (#994) 2018-03-15 04:19:29 +01:00
Andrey
05da295f27 Charts improvements (#992)
* Charts improvements

* Improve last-odd legend item.

* Revert dblclick

* Lint
2018-03-14 16:11:37 -07:00
NovapaX
9dc809cdb9 State display wrapping and fix full screen more-info (#991)
* state-info lower min-width, remove unnesecary wrapping div

* State normal line height, align flex baseline. Get rid of wrapping div

* fix full screen more-info-dialog
2018-03-14 11:42:10 -07:00
Ville Skyttä
09fe2172b2 Spelling fixes (#989) 2018-03-14 13:03:00 +01:00