File tree Expand file tree Collapse file tree 2 files changed +48
-2
lines changed
tests/pages/_includes/widgets Expand file tree Collapse file tree 2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 4141 cursor : pointer ;
4242 display : block ;
4343 }
44+ & .drawer-pf-expanded {
45+ left : 270px ;
46+ width : inherit ;
47+ .drawer-pf-toggle-expand :before {
48+ content : " \f101 " ;
49+ }
50+ }
51+ }
52+ .drawer-pf-toggle-expand {
53+ color : inherit ;
54+ cursor : pointer ;
55+ left : 0 ;
56+ padding : 2px 5px ;
57+ position : absolute ;
58+ & :before {
59+ content : " \f100 " ;
60+ font-family : " FontAwesome" ;
61+ }
62+ & :hover ,
63+ & :focus {
64+ color : inherit ;
65+ text-decoration : none ;
66+ }
4467}
4568
4669.drawer-pf-action {
77100 }
78101 & :hover { background-color : @color-pf-blue-50 ; }
79102 & .unread .drawer-pf-notification-message { font-weight : bold ; }
103+ & .expanded-notification {
104+ .date {
105+ border-right : none ;
106+ padding-right : 0 ;
107+ }
108+ }
80109}
81110
82111.drawer-pf-notification-info ,
83112.drawer-pf-notification-message {
84113 display : block ;
85114 padding-left : 27px ;
86115 padding-right : 19px ;
116+ .expanded-notification & {
117+ display : inline-block ;
118+ }
87119}
88120
89121.drawer-pf-notifications-non-clickable .drawer-pf-notification :hover {
128160 top : 26px ;
129161 }
130162 .drawer-pf-trigger-icon { cursor : pointer ; }
131- }
163+ }
Original file line number Diff line number Diff line change 11< div class ="drawer-pf hide drawer-pf-notifications-non-clickable ">
22 < div class ="drawer-pf-title ">
3+ < a class ="drawer-pf-toggle-expand "> </ a >
34 < h3 class ="text-center "> Notifications Drawer</ h3 >
45 </ div >
56 < div class ="panel-group " id ="notification-drawer-accordion ">
@@ -88,6 +89,19 @@ <h4 class="panel-title">
8889 $drawer . addClass ( 'hide' ) ;
8990 }
9091 } ) ;
92+ $ ( '.drawer-pf-toggle-expand' ) . click ( function ( ) {
93+ var $drawer = $ ( '.drawer-pf' ) ;
94+ var $drawerNotifications = $drawer . find ( '.drawer-pf-notification' ) ;
95+
96+ if ( $drawer . hasClass ( 'drawer-pf-expanded' ) ) {
97+ $drawer . removeClass ( 'drawer-pf-expanded' ) ;
98+ $drawerNotifications . removeClass ( 'expanded-notification' ) ;
99+ } else {
100+ $drawer . addClass ( 'drawer-pf-expanded' ) ;
101+ $drawerNotifications . addClass ( 'expanded-notification' ) ;
102+ }
103+ } ) ;
104+
91105 // Mark All Read
92106 $ ( '.panel-collapse' ) . each ( function ( index , panel ) {
93107 var $panel = $ ( panel ) ;
@@ -99,4 +113,4 @@ <h4 class="panel-title">
99113
100114 $ ( '#notification-drawer-accordion' ) . initCollapseHeights ( '.panel-body' ) ;
101115 } ) ;
102- </ script >
116+ </ script >
You can’t perform that action at this time.
0 commit comments