lit#CSSResultGroup TypeScript Examples
The following examples show how to use
lit#CSSResultGroup.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: style.ts From atomic-calendar-revive with MIT License | 4 votes |
styles: CSSResultGroup = css`
.cal-card {
cursor: default;
padding: 16px;
height: var(--card-height);
overflow: auto;
}
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
vertical-align: middle;
align-items: center;
margin: 0 8px 0 2px;
}
.headerName {
font-family: var(--paper-font-headline_-_font-family);
-webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);
font-size: var(--paper-font-headline_-_font-size);
font-weight: var(--paper-font-headline_-_font-weight);
letter-spacing: var(--paper-font-headline_-_letter-spacing);
line-height: var(--paper-font-headline_-_line-height);
text-rendering: var(--paper-font-common-expensive-kerning_-_text-rendering);
opacity: var(--dark-primary-opacity);
padding: 4px 8px 12px 0px;
float: left;
}
.headerDate {
font-size: var(--paper-font-headline_-_font-size);
font-size: 1.3rem;
font-weight: 400;
color: var(--primary-text-color);
padding: 4px 8px 12px 0px;
line-height: var(--paper-font-headline_-_line-height);
float: right;
}
table {
color: black;
margin-left: 0px;
margin-right: 0px;
border-spacing: 10px 5px;
border-collapse: collapse;
}
td {
padding: 4px 0 4px 0;
}
.daywrap {
padding: 2px 0 4px 0;
border-top: 1px solid;
}
tr {
width: 100%;
}
.event-left {
padding: 4px 10px 3px 8px;
text-align: center;
vertical-align: top;
}
.event-leftCurrentDay {
width: 40px;
}
.week-number{
color: var(--primary-color);
-webkit-border-radius: 5px;
border-radius: 5px;
border: 2px solid;
padding: 0 4px;
margin: 5px 0;
line-height: 16px;
width: 100%;
text-align: center;
}
.daywrap > td {
padding-top: 8px;
}
.event-right {
display: flex;
justify-content: space-between;
padding: 0px 5px 0 5px;
}
.event-description {
display: flex;
justify-content: space-between;
padding: 0px 5px 0 5px;
color: var(--description-color);
font-size: var(--description-size);
overflow-wrap: anywhere;
user-select: text;
}
.hidden-events {
color: var(--primary-text-color);
}
.hoursHTML {
color: var(--time-color);
font-size: var(--time-size) !important;
float: left;
}
.relativeTime {
color: var(--time-color);
font-size: var(--time-size) !important;
float: right;
padding-left: 5px;
}
.event-main {
flex-direction: row nowrap;
display: inline-block;
vertical-align: top;
}
.event-title {
font-size: var(--event-title-size);
user-select: text;
}
.event-titleRunning {
font-size: var(--event-title-size);
}
.event-location {
text-align: right;
display: inline-block;
vertical-align: top;
user-select: text;
overflow-wrap: anywhere;
}
.event-location-icon {
--mdc-icon-size: 15px;
color: var(--location-icon-color);
height: 15px;
width: 15px;
margin-top: -2px;
}
.location-link {
text-decoration: none;
color: var(--accent-color);
font-size: var(--location-link-size);
user-select: text;
}
.event-circle {
width: 10px;
height: 10px;
margin-left: -2px;
}
hr.event {
color: var(--event-bar-color);
margin: -8px 0px 2px 0px;
border-width: 1px 0 0 0;
}
.event-cal-name {
}
.event-cal-name-icon {
--mdc-icon-size: 15px;
}
.eventBar {
margin-top: -10px;
margin-bottom: 0px;
}
progress {
border-radius: 2px;
width: 100%;
height: 3px;
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
progress::-webkit-progress-bar {
background-color: var(--progress-bar-bg);
border-radius: 2px;
}
progress::-webkit-progress-value{
background-color: var(--progress-bar);
border-radius: 2px;
}
ha-button-toggle-group {
color: var(--primary-color);
}
.calTitleContainer {
padding: 0px 8px 8px 8px;
}
.calIconSelector {
--mdc-icon-button-size: var(--button-toggle-size, 48px);
--mdc-icon-size: var(--button-toggle-icon-size, 24px);
border-radius: 4px 4px 4px 4px;
border: 1px solid var(--primary-color);
float: right;
display: inline-flex;
text-align: center;
}
.calDateSelector {
--mdc-icon-button-size: var(--button-toggle-size, 48px);
--mdc-icon-size: var(--button-toggle-icon-size, 24px);
display: inline-flex;
text-align: center;
}
div.calIconSelector ha-icon-button,
div.calDateSelector ha-icon-button {
color: var(--primary-color);
}
div.calDateSelector .prev {
border: 1px solid var(--primary-color);
border-radius: 3px 0px 0px 3px;
}
div.calDateSelector .date {
border: 1px solid var(--primary-color);
border-radius: 0px 0px 0px 0px;
padding: 4px 2px 2px 4px;
}
div.calDateSelector .next {
border: 1px solid var(--primary-color);
border-radius: 0px 4px 4px 0px;
}
ha-icon-button {
--mdc-icon-size: 20px;
--mdc-icon-button-size: 25px;
}
table.cal {
margin-left: 0px;
margin-right: 0px;
border-spacing: 10px 5px;
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
thead th.cal {
color: var(--secondary-text-color);
border: 1px solid --cal-border-color;
font-size: 11px;
font-weight: 400;
text-transform: uppercase;
}
td.cal {
padding: 5px 5px 5px 5px;
border: 1px solid var(--cal-grid-color);
text-align: center;
vertical-align: middle;
width: 100%;
color: var(--cal-day-color);
}
.calDay {
height: 38px;
font-size: 95%;
max-width: 38px;
margin: auto;
}
.calDay.currentDay {
height: 20px;
background-color: var(--primary-color);
border-radius: 50%;
display: inline-block;
text-align: center;
white-space: nowrap;
width: max-content;
min-width: 20px;
line-height: 140%;
color: var(--text-primary-color) !important;
}
tr.cal {
width: 100%;
}
.calTableContainer {
width: 100%;
}
.summary-div {
font-size: 90%;
}
.summary-event-div {
padding-top: 3px;
}
.bullet-event-div-accepted {
-webkit-border-radius: 8px;
border-radius: 8px;
border: 4px solid;
height: 0;
width: 0;
display: inline-block;
vertical-align: middle;
}
.bullet-event-div-declined {
-webkit-border-radius: 8px;
border-radius: 8px;
border: 1px solid;
height: 6px;
width: 6px;
display: inline-block;
vertical-align: middle;
}
.bullet-event-span {
overflow: hidden;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
margin: 0 5px;
text-decoration: none !important;
}
.summary-fullday-div-accepted {
-webkit-border-radius: 5px;
border-radius: 5px;
border: 2px solid;
border-left: 7px solid;
padding: 0 4px;
margin: 5px 0;
line-height: 16px;
}
.summary-fullday-div-declined {
-webkit-border-radius: 5px;
border-radius: 5px;
border: 1px solid;
padding: 0 4px;
margin: 5px 0;
height: 18px;
line-height: 16px;
}
.calDescription {
display: flex;
justify-content: space-between;
padding: 0px 5px 0 5px;
color: var(--description-color);
font-size: var(--description-size);
}
.calMain {
flex-direction: row nowrap;
display: inline-block;
vertical-align: top;
}
.calIcon {
--mdc-icon-size: 10px;
width: 10px;
height: 10px;
padding-top: 0px;
margin-top: -10px;
margin-right: -1px;
margin-left: -1px;
}
.eventIcon {
--mdc-icon-size: 15px !important;
padding-top: 0px;
margin-top: -10px;
margin-right: -1px;
margin-left: -1px;
}
.loader {
border: 4px solid #f3f3f3;
border-top: 4px solid grey;
border-radius: 50%;
width: 14px;
height: 14px;
animation: spin 2s linear infinite;
float: left;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
`