diff --git a/src/common/Addon/Addon.js b/src/common/Addon/Addon.js index 2c4f09b8f..562def569 100644 --- a/src/common/Addon/Addon.js +++ b/src/common/Addon/Addon.js @@ -19,7 +19,9 @@ const renderVersion = (version) => { } return ( - {'v. ' + version} +
+
{'v. ' + version}
+
); } @@ -68,12 +70,12 @@ const Addon = (props) => {
-
+
{renderName(props.name)} {renderVersion(props.version)} - {renderType(props.types)} - {renderDescription(props.description)}
+ {renderType(props.types)} + {renderDescription(props.description)}
{renderUrls(props.urls)}
diff --git a/src/common/Addon/styles.less b/src/common/Addon/styles.less index 338d44751..6a37f6209 100644 --- a/src/common/Addon/styles.less +++ b/src/common/Addon/styles.less @@ -1,5 +1,4 @@ @import 'stremio-colors'; - .addon { width: 550px; padding: 18px; @@ -7,78 +6,93 @@ color: @colorwhite; font-family: LatoLight; background-color: @colorglass; - .info-container { height: 80px; - display: flex; + display: grid; margin-bottom: 26px; - + grid-template-columns: 80px 14px 420px; + grid-template-rows: 22px 2px 18px 2px 36px; + grid-template-areas: + "logo . header" + "logo . ." + "logo . type" + "logo . ." + "logo . description"; .logo-container { + grid-area: logo; width: 80px; height: 80px; display: flex; - margin-right: 14px; background-color: @colordarkest; - .logo { width: 40px; margin: auto; fill: @colorwhite; } } - - .info { - width: 420px; - + .header { + grid-area: header; + display: flex; .name { font-size: 20px; + max-width: 350px; + overflow: hidden; + white-space: pre; margin-right: 10px; + text-overflow: ellipsis; } - - .version { - margin-right: 10px; + .version-container { + flex: 1; + overflow: hidden; color: @colorwhite60; - } - - .type { - color: @coloraccent; - } - - .type, .description { - margin-top: 2px; + .version { + margin-top: 4px; + overflow: hidden; + white-space: pre; + text-overflow: ellipsis; + } } } + .type { + grid-area: type; + color: @coloraccent; + } + .description { + grid-area: description; + } } - .urls-container { display: flex; overflow: auto; flex-direction: column; - .url { color: @colorwhite60; } } - .buttons { display: flex; margin-top: 26px; justify-content: space-between; - .share-container { border: 2px solid @coloraccent; - .share-icon { width: 18px; margin-right: 6px; fill: @coloraccent; } - .share-label { color: @coloraccent; } + &:hover { + background-color: @coloraccent; + .share-icon { + fill: @colorwhite; + } + .share-label { + color: @colorwhite; + } + } } - .share-container, .install-label, .uninstall-label { width: 230px; display: flex; @@ -88,15 +102,22 @@ padding: 10px 0px; align-items: center; justify-content: center; + &:hover { + border: none; + } } - .install-label { border: 2px solid @colorsignal5; background-color: @colorsignal5; + &:hover { + background-color: @colorsignal580; + } } - .uninstall-label { - border: 2px solid @colorwhite20; + border: 2px solid @colorneutral; + &:hover { + background-color: @colorneutral; + } } } } \ No newline at end of file diff --git a/src/common/MetaItem/MetaItem.js b/src/common/MetaItem/MetaItem.js index f34093d9c..d0980496c 100644 --- a/src/common/MetaItem/MetaItem.js +++ b/src/common/MetaItem/MetaItem.js @@ -9,35 +9,20 @@ const getShapeSize = (posterShape, progress) => { switch (posterShape) { case 'poster': return { - containerHeight: 290, - width: RELATIVE_POSTER_SIZE, - height: RELATIVE_POSTER_SIZE * 1.464 + width: RELATIVE_POSTER_SIZE }; case 'landscape': - if (progress) { - return { - containerHeight: 290, - width: RELATIVE_POSTER_SIZE / 0.5625, - height: RELATIVE_POSTER_SIZE * 1.464 - }; - } return { - containerHeight: 210, - width: RELATIVE_POSTER_SIZE / 0.5625, - height: RELATIVE_POSTER_SIZE + width: RELATIVE_POSTER_SIZE / 0.5625 }; default: if (progress) { return { - containerHeight: 290, - width: RELATIVE_POSTER_SIZE * 1.464, - height: RELATIVE_POSTER_SIZE * 1.464 + width: RELATIVE_POSTER_SIZE * 1.464 }; } return { - containerHeight: 210, - width: RELATIVE_POSTER_SIZE, - height: RELATIVE_POSTER_SIZE + width: RELATIVE_POSTER_SIZE }; } } @@ -97,46 +82,66 @@ const renderReleaseInfo = (releaseInfo) => { ); } -const renderIcon = (onItemClicked, progress) => { - if (progress > 0) { - return ( -
- -
- ); +const renderPopupIcon = (onItemClicked, popup) => { + if (!popup) { + return null; } - return null; + return ( +
+ +
+ ); +} + +const getClassName = (progress, posterShape, title, releaseInfo, episode) => { + if ((progress > 0) && (title.length > 0 || releaseInfo.length > 0 || episode.length > 0)) { + if (posterShape === 'landscape') return 'progress-info-landscape-shape'; + if (posterShape === 'square') return 'progress-info-square-shape'; + return 'progress-info-poster-shape'; + } + if ((progress > 0) && (title.length === 0 && releaseInfo.length === 0 && episode.length === 0)) { + if (posterShape === 'landscape') return 'progress-landscape-shape'; + if (posterShape === 'square') return 'progress-square-shape'; + return 'progress-poster-shape'; + } + if (!progress && (title.length > 0 || releaseInfo.length > 0 || episode.length > 0)) { + if (posterShape === 'landscape') return 'info-landscape-shape'; + if (posterShape === 'square') return 'info-square-shape'; + return 'info-poster-shape'; + } + if (!progress && (title.length === 0 && releaseInfo.length === 0 && episode.length === 0)) { + if (posterShape === 'landscape') return 'landscape-shape'; + if (posterShape === 'square') return 'square-shape'; + return 'poster-shape'; + } + return 'meta-item'; } const MetaItem = (props) => { const posterSize = getShapeSize(props.posterShape, props.progress); const contentContainerStyle = { - width: posterSize.width, - height: props.episode.length === 0 && props.title.length === 0 && props.releaseInfo.length === 0 && props.progress == 0 ? posterSize.height : posterSize.containerHeight + width: posterSize.width }; const placeholderIcon = getPlaceholderIcon(props.type); const placeholderIconUrl = iconDataUrl({ icon: placeholderIcon, fill: colors.accent, width: Math.round(RELATIVE_POSTER_SIZE / 2.2), height: Math.round(RELATIVE_POSTER_SIZE / 2.2) }); const imageStyle = { - height: posterSize.height, backgroundImage: `url(${props.poster}), url('${placeholderIconUrl}')` }; return ( -
+
{renderProgress(props.progress)} -
-
- {renderEpisode(props.episode)} - {renderTitle(props.title)} - {renderReleaseInfo(props.releaseInfo)} -
- {renderIcon(props.onItemClicked, props.progress)} +
+ {renderEpisode(props.episode)} + {renderTitle(props.title)} + {renderReleaseInfo(props.releaseInfo)}
+ {renderPopupIcon(props.onItemClicked, props.popup)}
); } @@ -149,6 +154,7 @@ MetaItem.propTypes = { episode: PropTypes.string.isRequired, title: PropTypes.string.isRequired, releaseInfo: PropTypes.string.isRequired, + popup: PropTypes.bool.isRequired, play: PropTypes.func, onItemClicked: PropTypes.func }; @@ -159,7 +165,8 @@ MetaItem.defaultProps = { progress: 0, episode: '', title: '', - releaseInfo: '' + releaseInfo: '', + popup: false }; export default MetaItem; \ No newline at end of file diff --git a/src/common/MetaItem/styles.less b/src/common/MetaItem/styles.less index 9d88bb32b..fcdf95954 100644 --- a/src/common/MetaItem/styles.less +++ b/src/common/MetaItem/styles.less @@ -1,16 +1,15 @@ @import 'stremio-colors'; - -.meta-item { +.meta-item, .progress-poster-shape, .progress-landscape-shape, .progress-square-shape, .progress-info-poster-shape, .progress-info-landscape-shape, .progress-info-square-shape, .poster-shape, .landscape-shape, .square-shape, .info-poster-shape, .info-landscape-shape, .info-square-shape { + display: grid; color: @colorwhite; font-family: LatoLight; - .poster { + grid-area: poster; display: flex; background-position: center; background-size: cover, auto; background-repeat: no-repeat; background-color: @colordarkest; - .play-container { width: 70px; height: 70px; @@ -19,7 +18,6 @@ visibility: hidden; border-radius: 50%; background-color: @colorwhite; - .play { width: 26px; height: 26px; @@ -29,66 +27,129 @@ } } } - .progress-container { + grid-area: progress; background-color: @colorneutral; - .progress { height: 4px; background-color: @colorprimlight; } } - - .info-container { - display: flex; - margin-top: 6px; - align-items: baseline; - - .info { - width: 100%; - - .title, .year { - color: @colorwhite60; - } - - :first-child { - color: @colorwhite; - } + .info { + grid-area: info; + .title, .year, .episode { + grid-area: text; + color: @colorwhite60; + } + :first-child { + color: @colorwhite; } } - - .more-icon-container { + .popup-icon-container { + grid-area: popupIcon; cursor: pointer; fill: @colorwhite; - - .more-icon { + .popup-icon { width: 10px; height: 10px; } } - &:hover { color: @colorblack; background-color: @colorwhite; outline: 2px solid @colorwhite; - .play-container { cursor: pointer; visibility: visible; } - .info { .title, .year { color: @colorblack60; } - :first-child { color: @colorblack; } } - - .more-icon { + .popup-icon { fill: @colorblack40; } } +} +.progress-poster-shape, .progress-landscape-shape, .progress-square-shape { + grid-template-areas: + "poster poster" + "progress progress" + ". popupIcon"; +} +.progress-poster-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 202.03px 4px; +} +.progress-landscape-shape { + grid-template-columns: 235.33px 10px; + grid-template-rows: 202.03px 4px; +} +.progress-square-shape { + grid-template-columns: 192.33px 10px; + grid-template-rows: 202.03px 4px; +} +.progress-info-poster-shape, .progress-info-landscape-shape, .progress-info-square-shape { + grid-template-areas: + "poster poster" + "progress progress" + ". ." + "info popupIcon"; +} +.progress-info-poster-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 202.03px 4px 6px 77.97px; +} +.progress-info-landscape-shape { + grid-template-columns: 235.33px 10px; + grid-template-rows: 202.03px 4px 6px 77.97px; +} +.progress-info-square-shape { + grid-template-columns: 192.33px 10px; + grid-template-rows: 202.03px 4px 6px 77.97px; +} +.poster-shape, .landscape-shape, .square-shape { + grid-template-areas: + "poster poster" + ". popupIcon"; +} +.poster-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 202.03px; +} +.landscape-shape { + grid-template-columns: 235.33px 10px; + grid-template-rows: 138px; +} +.square-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 138px; +} +.info-poster-shape, .info-landscape-shape, .info-square-shape { + grid-template-areas: + "poster poster" + ". ." + "info popupIcon"; +} +.info-poster-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 202.03px 6px 81.97px; +} +.info-landscape-shape { + grid-template-columns: 235.33px 10px; + grid-template-rows: 138px 6px 64.97px; +} +.info-square-shape { + grid-template-columns: 128px 10px; + grid-template-rows: 138px 6px 64.97px; +} +.meta-item { + grid-template-columns: 138px; + grid-template-rows: 202.03px; + grid-template-areas: + "poster"; } \ No newline at end of file diff --git a/src/common/Stream/Stream.js b/src/common/Stream/Stream.js index 610ae6293..61afde5e6 100644 --- a/src/common/Stream/Stream.js +++ b/src/common/Stream/Stream.js @@ -26,6 +26,13 @@ const renderTitle = (title) => { ); } +const getClassName = (isFree, isSubscription, title, subtitle) => { + if (isFree) return 'free-subtitle'; + if (title.length > 0 && subtitle.length === 0 && !isSubscription) return 'with-title'; + if (title.length === 0 && subtitle.length > 0) return 'with-subtitle'; + return 'text-container'; +} + const renderSubtitle = (isFree, isSubscription, subtitle) => { if (isFree) { return ( @@ -62,16 +69,12 @@ const renderProgress = (progress) => { const Stream = (props) => { return (
-
-
- {renderLogo(props.logo, props.sourceName)} -
- {renderTitle(props.title)} - {renderSubtitle(props.isFree, props.isSubscription, props.subtitle)} -
-
- {renderProgress(props.progress)} + {renderLogo(props.logo, props.sourceName)} +
+ {renderTitle(props.title)} + {renderSubtitle(props.isFree, props.isSubscription, props.subtitle)}
+ {renderProgress(props.progress)}
diff --git a/src/common/Stream/styles.less b/src/common/Stream/styles.less index e515ee364..2b973db65 100644 --- a/src/common/Stream/styles.less +++ b/src/common/Stream/styles.less @@ -1,85 +1,102 @@ @import 'stremio-colors'; - .stream { width: 340px; - display: flex; + display: grid; font-size: 11px; padding: 7px 20px; color: @colorwhite; - justify-content: space-between; + align-items: center; background-color: @colorblack20; - - .stream-info-container { - width: 230px; - - .stream-info { - height: 40px; - display: flex; - align-items: center; - justify-content: space-between; - - .logo { - width: 74px; - fill: @colorwhite; - } - - .source-name { - width: 80px; - font-size: 13px; - overflow: hidden; - white-space: pre; - text-overflow: ellipsis; - } - - .text-container { - width: 120px; - overflow: hidden; - - .title { - overflow: hidden; - white-space: pre; - text-overflow: ellipsis; - - &:hover { - margin-left: -180%; - text-overflow: initial; - transition: margin-left 3s linear; - } - } - - .free-label, .subscription-label { - font-weight: 600; - } - - .free-label { - padding: 1px 6px; - border-radius: 2px; - background-color: @colorprimlight; - } - - .subscription-label { - color: @colorsignal1; - } + grid-template-columns: 74px 36px 120px 24px 46px; + grid-template-rows: 40px 3px 3px; + grid-template-areas: + "logo . text . play" + "progress progress progress . play" + ". . . . play"; + .logo { + grid-area: logo; + width: 74px; + fill: @colorwhite; + } + .source-name { + grid-area: logo; + font-size: 13px; + overflow: hidden; + white-space: pre; + text-overflow: ellipsis; + } + .free-subtitle, .with-title, .with-subtitle, .text-container { + grid-area: text; + display: grid; + overflow: hidden; + .title { + grid-area: title; + overflow: hidden; + white-space: pre; + text-overflow: ellipsis; + &:hover { + margin-left: -180%; + text-overflow: initial; + transition: margin-left 3s linear; } } - - .progress-container { - background-color: @colorneutral; - - .progress { - height: 3px; - border-radius: 1px; - background-color: @colorprimlight; - } + .subtitle, .subscription-label { + grid-area: subtitle; + } + .free-label, .subscription-label { + font-weight: 600; + } + .free-label { + grid-area: free; + padding: 0px 6px; + border-radius: 2px; + background-color: @colorprimlight; + } + .subscription-label { + color: @colorsignal1; + } + } + .free-subtitle { + grid-template-columns: 38px 82px; + grid-template-rows: 18px 17px 1px; + grid-template-areas: + "title title" + "free ." + ". ."; + } + .with-title { + grid-template-columns: 120px; + grid-template-rows: 18px; + grid-template-areas: + "title"; + } + .with-subtitle { + grid-template-columns: 120px; + grid-template-rows: 18px; + grid-template-areas: + "subtitle"; + } + .text-container { + grid-template-columns: 120px; + grid-template-rows: 18px 18px; + grid-template-areas: + "title" + "subtitle"; + } + .progress-container { + grid-area: progress; + background-color: @colorneutral; + .progress { + height: 3px; + border-radius: 1px; + background-color: @colorprimlight; } } - .play-container { - width: 46px; + grid-area: play; height: 46px; display: flex; border-radius: 50%; - .play { width: 18px; height: 18px; @@ -88,7 +105,6 @@ fill: @colorwhite60; } } - &:hover { cursor: pointer; background-color: @colorwhite20; diff --git a/src/common/UserPanel/styles.less b/src/common/UserPanel/styles.less index ad95b4440..ffb94bb14 100644 --- a/src/common/UserPanel/styles.less +++ b/src/common/UserPanel/styles.less @@ -1,15 +1,12 @@ @import 'stremio-colors'; - .user-panel { width: 260px; font-family: LatoLight; background-color: @colordarkest; - .user-info { display: flex; padding: 15px; align-items: center; - .profile-picture { height: 50px; width: 50px; @@ -19,59 +16,52 @@ background-position: center; background-repeat: no-repeat; } - .email { color: @colorwhite; + width: 160px; + overflow: hidden; + white-space: pre; + text-overflow: ellipsis; } - .log-out { color: @colorwhite40; - &:hover { cursor: pointer; color: @colorwhite; } } } - .fullscreen-option { border-top: 1px solid @colorwhite20; border-bottom: 1px solid @colorwhite20; } - .fullscreen-option, .settings-option, .addons-option, .magnet-option, .help-option { display: flex; padding: 15px; align-items: center; color: @colorwhite80; - .fullscreen-icon, .settings-icon, .addons-icon, .magnet-icon, .help-icon { height: 20px; width: 20px; margin-right: 12px; fill: @coloraccent; } - &:hover { cursor: pointer; color: @colorwhite; background-color: @coloraccent20; } } - .options, .footer { padding: 15px 0px; } - .footer { display: flex; flex-direction: column; border-top: 1px solid @colorwhite20; - .terms-label, .about-label { padding: 10px 20px; color: @colorwhite80; - &:hover { cursor: pointer; color: @colorwhite; diff --git a/src/common/Video/Video.js b/src/common/Video/Video.js index 6c1975195..5d9d2e5bb 100644 --- a/src/common/Video/Video.js +++ b/src/common/Video/Video.js @@ -11,8 +11,6 @@ const renderPoster = (poster) => { const placeholderIconUrl = iconDataUrl({ icon: 'ic_channels', fill: colors.accent, width: 40, height: 36 }); const imageStyle = { - width: 70, - height: 42, backgroundImage: `url('${poster}'), url('${placeholderIconUrl}')` }; @@ -63,53 +61,47 @@ const renderReleasedDate = (released) => { ); } -const renderWatched = (isWatched) => { - if (!isWatched) { +const renderLabel = (isWatched, isUpcoming) => { + if (!isWatched && !isUpcoming) { return null; } return ( - WATCHED +
+ {isWatched ? 'WATCHED' : 'UPCOMING'} +
); } -const renderUpcoming = (isUpcoming) => { - if (!isUpcoming) { - return null; - } - - return ( - UPCOMING - ); -} - -const renderProgress = (poster, progress) => { +const renderProgress = (progress) => { if (progress <= 0) { return null; } return ( -
0 ? 220 : 300 }} className={styles['progress-container']}> +
); } +const getClassName = (poster, progress) => { + if (poster.length > 0 && !progress) return 'with-poster'; + if (progress && poster.length === 0) return 'with-progress'; + if (poster.length > 0 && progress) return 'with-poster-progress'; + return 'video'; +} + const Video = (props) => { return ( -
0 && props.progress ? 'flex' : null }} className={styles['video']}> +
0 ? '10px 10px' : '10px 16px' }} className={styles[getClassName(props.poster, props.progress)]}> {renderPoster(props.poster)} -
-
- {renderNumber(props.number)} - {renderName(props.name)} -
- {renderDuration(props.duration)} - {renderReleasedDate(props.released)} - {renderWatched(props.isWatched)} - {renderUpcoming(props.isUpcoming)} - {renderProgress(props.poster, props.progress)} -
+ {renderNumber(props.number)} + {renderName(props.name)} + {renderDuration(props.duration)} + {renderReleasedDate(props.released)} + {renderLabel(props.isWatched, props.isUpcoming)} + {renderProgress(props.progress)}
); } diff --git a/src/common/Video/styles.less b/src/common/Video/styles.less index fd9557504..8684b0e73 100644 --- a/src/common/Video/styles.less +++ b/src/common/Video/styles.less @@ -1,73 +1,89 @@ @import 'stremio-colors'; - -.video { - height: 62px; +.with-poster, .with-progress, .with-poster-progress, .video { width: 340px; - display: flex; - padding: 10px 10px; + display: grid; + font-size: 12px; + color: @colorwhite; background-color: @colorblack20; - .poster { - margin-right: 10px; + grid-area: poster; background-position: center; background-size: cover, auto; background-repeat: no-repeat; } - - .video-container { - width: 240px; - color: @colorwhite; - - .main-info { - font-size: 12px; - - .number { - margin-right: 6px; - } - - .name { - overflow: hidden; - white-space: pre; - text-overflow: ellipsis; - } - } - - .duration, .released-date { - font-size: 11px; - padding-left: 1px; - margin-right: 10px; - color: @colorwhite60; - } - - .progress-container { - background-color: @colorwhite20; - - .progress { - height: 3px; - margin-top: 2px; - border-radius: 1px; - background-color: @colorprimlight; - } - } - + .number { + grid-area: number; + } + .name { + grid-area: name; + overflow: hidden; + white-space: pre; + text-overflow: ellipsis; + } + .duration, .released-date { + grid-area: time; + font-size: 11px; + color: @colorwhite60; + } + .label-container { + grid-area: label; .watched-label, .upcoming-label { + grid-area: label; font-weight: 600; font-size: 10px; padding: 1px 6px; border-radius: 2px; } - .watched-label { background-color: @colorprimlight; } - .upcoming-label { background-color: @colorsignal5; } } - + .progress-container { + grid-area: progress; + background-color: @colorwhite20; + .progress { + height: 3px; + border-radius: 1px; + background-color: @colorprimlight; + } + } &:hover, &:focus { cursor: pointer; background-color: @colorwhite20; } +} +.with-poster { + grid-template-columns: 70px 10px 1px 15px 28px 196px; + grid-template-rows: 18px 24px; + grid-template-areas: + "poster . number number name name" + "poster . . time time label"; +} +.with-progress { + background-color: @colorblack40; + grid-template-columns: 1px 15px 278px 14px; + grid-template-rows: 18px 19px 3px 2px; + grid-template-areas: + "number number name" + ". time time" + "progress progress progress"; +} +.with-poster-progress { + background-color: @colorblack40; + grid-template-columns: 70px 10px 1px 15px 204px 20px; + grid-template-rows: 18px 19px 3px 2px; + grid-template-areas: + "poster . number number name" + "poster . . time time" + "poster . progress progress progress"; +} +.video { + grid-template-columns: 1px 15px 28px 264px; + grid-template-rows: 18px 24px; + grid-template-areas: + "number number name name" + ". time time label"; } \ No newline at end of file diff --git a/stories/index.stories.js b/stories/index.stories.js index 20a7fe0ff..da3df8622 100644 --- a/stories/index.stories.js +++ b/stories/index.stories.js @@ -1,83 +1,80 @@ import React from 'react'; -import styles from '../src/app/styles'; - import { storiesOf } from '@storybook/react'; -import { action } from '@storybook/addon-actions'; -import { linkTo } from '@storybook/addon-links'; - import { Addon, Checkbox, LibraryItemList, MetaItem, ShareAddon, Stream, UserPanel, Video } from 'stremio-common'; +import appStyles from '../src/app/styles'; +import styles from './styles'; storiesOf('Addon', module) - .add('addon', () => ( -
- - - - -
- )); + .add('addon', () => ( +
+ + + + +
+ )); storiesOf('Checkbox', module) - .add('checkbox', () => ( -
- - - - -
- )) + .add('checkbox', () => ( +
+ + + + +
+ )) storiesOf('LibraryItemList', module) - .add('library item list', () => ( -
- - - - -
- )); + .add('library item list', () => ( +
+ + + + +
+ )); storiesOf('MetaItem', module) - .add('meta item', () => ( -
- - - - -
- )); + .add('meta item', () => ( +
+ + + + +
+ )); storiesOf('ShareAddon', module) - .add('share addon', () => ( -
- -
- )); + .add('share addon', () => ( +
+ +
+ )); storiesOf('Stream', module) - .add('stream', () => ( -
- - - - - -
- )); + .add('stream', () => ( +
+ + + + + +
+ )); storiesOf('UserPanel', module) - .add('user panel', () => ( -
- -
- )); + .add('user panel', () => ( +
+ +
+ )); storiesOf('Video', module) - .add('video', () => ( -
- - - - -
- )); \ No newline at end of file + .add('video', () => ( +
+
+ )); \ No newline at end of file diff --git a/stories/styles.less b/stories/styles.less new file mode 100644 index 000000000..9a2987fe9 --- /dev/null +++ b/stories/styles.less @@ -0,0 +1,4 @@ +.checkbox-size { + height: 16px; + width: 16px; +} \ No newline at end of file