Skip to content

Commit

Permalink
feat(flyout): initial release of flyout module
Browse files Browse the repository at this point in the history
The following PR implements a new module called Flyout. It's based on my own ES6 fomantic code, which is derived from sidebar, and CSS code is based from @jamessampford #1885 tryout.
  • Loading branch information
prudho committed Sep 15, 2022
1 parent 0963809 commit 9a105a8
Show file tree
Hide file tree
Showing 10 changed files with 2,013 additions and 0 deletions.
1,346 changes: 1,346 additions & 0 deletions src/definitions/modules/flyout.js

Large diffs are not rendered by default.

604 changes: 604 additions & 0 deletions src/definitions/modules/flyout.less

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/semantic.less
Expand Up @@ -57,6 +57,7 @@
& { @import "definitions/modules/dimmer"; }
& { @import "definitions/modules/dropdown"; }
& { @import "definitions/modules/embed"; }
& { @import "definitions/modules/flyout"; }
& { @import "definitions/modules/modal"; }
& { @import "definitions/modules/nag"; }
& { @import "definitions/modules/popup"; }
Expand Down
1 change: 1 addition & 0 deletions src/theme.config.example
Expand Up @@ -56,6 +56,7 @@
@dimmer : 'default';
@dropdown : 'default';
@embed : 'default';
@flyout : 'default';
@modal : 'default';
@nag : 'default';
@popup : 'default';
Expand Down
10 changes: 10 additions & 0 deletions src/themes/default/globals/variation.variables
Expand Up @@ -550,6 +550,16 @@
/* Embed */
@variationEmbedRatio: true;

/* Flyout */
@variationFlyoutColumnWidth: true;
@variationFlyoutThin: true;
@variationFlyoutWide: true;
@variationFlyoutTop: true;
@variationFlyoutBottom: true;
@variationFlyoutLeft: true;
@variationFlyoutRight: true;
@variationFlyoutOverlay: true;

/* Modal */
@variationModalInverted: true;
@variationModalBasic: true;
Expand Down
3 changes: 3 additions & 0 deletions src/themes/default/modules/flyout.overrides
@@ -0,0 +1,3 @@
/*******************************
Theme Overrides
*******************************/
45 changes: 45 additions & 0 deletions src/themes/default/modules/flyout.variables
@@ -0,0 +1,45 @@
/*******************************
Flyout
*******************************/

/*-------------------
Content
--------------------*/

/* Animation */
@perspective: 1500px;
@duration: 500ms;
@easing: @defaultEasing;

/* Dimmer */
@dimmerColor: rgba(0, 0, 0, 0.4);
@dimmerTransition: opacity @duration;

/* Color below page */
@canvasBackground: @lightBlack;

/* Shadow */
@boxShadow: 0 0 20px @borderColor;
@horizontalBoxShadow: @boxShadow;
@verticalBoxShadow: @boxShadow;

/* Layering */
@bottomLayer: 1;
@middleLayer: 2;
@fixedLayer: 101;
@topLayer: 102;
@dimmerLayer: 1000;

/*-------------------
Variations
--------------------*/

/* Width */
@veryThinWidth: 120px;
@thinWidth: 200px;
@width: 400px;
@wideWidth: 600px;
@veryWideWidth: 800px;

/* Height */
@height: 36px;
1 change: 1 addition & 0 deletions tasks/config/admin/release.js
Expand Up @@ -77,6 +77,7 @@ module.exports = {
'emoji',
'feed',
'flag',
'flyout',
'form',
'grid',
'header',
Expand Down
1 change: 1 addition & 0 deletions tasks/config/defaults.js
Expand Up @@ -90,6 +90,7 @@ module.exports = {
'dimmer',
'dropdown',
'embed',
'flyout',
'modal',
'nag',
'popup',
Expand Down
1 change: 1 addition & 0 deletions tasks/config/project/install.js
Expand Up @@ -390,6 +390,7 @@ module.exports = {
{ name: "dimmer", checked: true },
{ name: "dropdown", checked: true },
{ name: "embed", checked: true },
{ name: "flyout", checked: true },
{ name: "modal", checked: true },
{ name: "nag", checked: true },
{ name: "placeholder", checked: true },
Expand Down

0 comments on commit 9a105a8

Please sign in to comment.