Implemented URL query parsing for initial token /opa/?token=abcde
[src/app-framework-demo.git] / afb-client / bower_components / foundation-apps / scss / components / _popup.scss
1 /*
2   POPUP
3   -----
4
5   A floating container that can anchor to any other on-screen element, and contain any content, including grid blocks or panels.
6 */
7
8 /// @Foundation.settings
9 // Popup
10 $popup-width: rem-calc(300) !default;
11 $popup-background: #fff !default;
12 $popup-border: 0 !default;
13 $popup-radius: 0 !default;
14 $popup-shadow: 0 0 10px rgba(#000, 0.25) !default;
15 ///
16
17 %popup {
18   position: absolute;
19   z-index: 1000;
20   opacity: 0;
21   overflow: hidden;
22   transition: opacity 0.25s ease-out;
23   pointer-events: none;
24
25   &.tether-enabled {
26     opacity: 1;
27     pointer-events: auto;
28   }
29 }
30
31 @mixin popup-layout(
32   $width: $popup-width
33 ) {
34   width: $popup-width;
35 }
36 @mixin popup-style(
37   $background: $popup-background,
38   $color: #000,
39   $radius: $popup-radius,
40   $shadow: $popup-shadow,
41   $border: $popup-border
42 ) {
43   background: $background;
44   border-radius: $radius;
45   box-shadow: $shadow;
46   border: $border;
47 }
48
49 @mixin popup(
50   $width: $popup-width,
51   $background: $popup-background,
52   $radius: $popup-radius,
53   $shadow: $popup-shadow,
54   $border: $popup-border
55 ) {
56   @extend %popup;
57   @include popup-layout($width);
58   @include popup-style($background, isitlight($background), $radius, $shadow, $border);
59 }
60
61 @include exports(popup) {
62   .popup {
63     @include popup;
64
65     &.dark    { @include popup-style($dark-color, #fff); }
66     &.primary { @include popup-style($primary-color, isitlight($primary-color)); }
67   }
68 }