Просмотр исходного кода

move dot util to list view scss

Adam Shaw 5 лет назад
Родитель
Сommit
b45cf7ada7

+ 0 - 1
packages/core/src/main.scss

@@ -19,4 +19,3 @@
 @import './styles/bg';
 @import './styles/event';
 @import './styles/h-event';
-@import './styles/dot';

+ 0 - 8
packages/core/src/styles/_dot.scss

@@ -1,8 +0,0 @@
-
-.fc-dot {
-  display: inline-block;
-  width: 10px;
-  height: 10px;
-  border-radius: 5px;
-  background-color: #3788d8; // TODO: var
-}

+ 1 - 1
packages/list/src/ListViewEventRow.tsx

@@ -42,7 +42,7 @@ export default class ListViewEventRow extends BaseComponent<MinimalEventProps> {
           <tr className={[ 'fc-list-event', hookProps.event.url ? 'fc-event-forced-url' : '' ].concat(classNames).join(' ')} ref={rootElRef}>
             {buildTimeContent(seg, timeFormat, context)}
             <td class='fc-list-event-graphic'>
-              <span class='fc-list-event-dot fc-dot' style={{
+              <span class='fc-list-event-dot' style={{
                 backgroundColor: hookProps.event.backgroundColor
               }} />
             </td>

+ 8 - 0
packages/list/src/main.scss

@@ -97,6 +97,14 @@
   width: 1px;
 }
 
+.fc-list-event-dot {
+  display: inline-block;
+  width: 10px;
+  height: 10px;
+  border-radius: 5px;
+  background-color: #3788d8; // TODO: var
+}
+
 // make the dot closer to the event title
 .fc-dir-ltr .fc-list-event-graphic { padding-right: 0 }
 .fc-dir-rtl .fc-list-event-graphic { padding-left: 0 }