UNPKG

reapop-theme-bootstrap

Version:
75 lines (67 loc) 2.3 kB
'use strict'; // In order for this theme to work straight out of the box with the Create React App project, // we follow the same CSS Modules `[name].module.css` file naming convention. var css = require('./lib/styles.module.css'); // media breakpoint - small screen min width var smallScreenMin = 768; // default className for NotificationsSystem component var notificationsSystemClassName = css['notifications-system']; // default className for NotificationsContainer component var notificationsContainerClassName = { main: css['notifications-container'], position: function position(_position) { return css['notifications-container--' + _position]; } }; // default transition for Notification component var notificationsContainerTransition = { enterTimeout: 500, leaveTimeout: 900, name: { enter: css['notification-wrapper-enter'], leave: css['notification-wrapper-leave'] } }; // default className for Notification component var notificationClassName = { main: css['notification'], wrapper: css['notification-wrapper'], meta: css['notification-meta'], title: css['notification-title'], message: css['notification-message'], // `fa` corresponds to font-awesome's class name icon: 'fa ' + css['notification-icon'], imageContainer: css['notification-image-container'], image: css['notification-image'], status: function status(_status) { return css['notification--' + _status]; }, dismissible: css['notification--dismissible'], buttons: function buttons(count) { if (count === 0) { return ''; } else if (count === 1) { return css['notification--buttons-1']; } else if (count === 2) { return css['notification--buttons-2']; } return css['notification-buttons']; }, closeButtonContainer: css['notification-close-button-container'], closeButton: 'fa ' + css['notification-close-button'], button: css['notification-button'], buttonText: css['notification-button-text'] }; module.exports = { smallScreenMin: smallScreenMin, notificationsSystem: { className: notificationsSystemClassName }, notificationsContainer: { className: notificationsContainerClassName, transition: notificationsContainerTransition }, notification: { className: notificationClassName } };