forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_notifications.less
127 lines (125 loc) · 3.5 KB
/
_notifications.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
//
// Notification drawer
// -----------------------------------------------
notification-drawer-wrapper {
.drawer-pf {
height: calc(100vh ~"-" (@navbar-os-header-height-mobile + @project-bar-height-mobile));
opacity: 1;
position: fixed;
right: 0;
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile);
transition: top 150ms ease-in-out, opacity 150ms;
z-index: @zindex-navbar-fixed - 2; // two less than navbar, one less than project-bar
@media(max-width: 350px) {
left: 0;
width: 100%;
}
@media(min-width: @screen-sm-min) {
height: calc(100vh ~"-" (@navbar-os-header-height-desktop + @project-bar-height-desktop) ~"-" 20px); // 20px bottom gutter
top: (@navbar-os-header-height-desktop + @project-bar-height-desktop);
}
&.drawer-pf-expanded {
left: 0;
@media(min-width: @screen-sm-min) {
left: 270px;
}
}
&.hide {
opacity: 0;
top: 38px;
}
&.hide-add,
&.hide-remove {
display: block !important;
}
.tech-preview & {
height: calc(100vh ~"-" (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height));
top: (@navbar-os-header-height-mobile + @project-bar-height-mobile + @tech-preview-banner-height);
@media(min-width: @screen-sm-min) {
height: calc(100vh ~"-" (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height) ~"-" 20px); // 20px bottom gutter
top: (@navbar-os-header-height-desktop + @project-bar-height-desktop + @tech-preview-banner-height);
}
}
}
// the whole block is clickable, need to set pointer on all of these
// for the correct visual
.drawer-pf-notification,
.drawer-pf-notification-info,
.drawer-pf-notification-message {
cursor: pointer;
}
.drawer-pf-notification {
padding: 0;
&.ng-leave {
transition: 0.25s linear all;
opacity: 1;
&.ng-leave-active {
opacity: 0;
}
}
}
.drawer-pf-notification-info {
font-size: @font-size-small;
}
.drawer-pf-notification-inner {
padding: 15px;
.pficon-close {
color: @color-pf-black-400;
&:hover,&:focus,&:active {
color: @color-pf-black-700;
}
}
}
.drawer-pf-title h3 {
font-size: @font-size-base - 1;
}
.expanded-notification {
.drawer-pf-notification-info {
.text-muted;
}
.drawer-pf-notification-message-expanded {
font-size: @font-size-base - 1;
padding: 10px 10px 10px 42px;
.text-muted;
}
&.unread {
.drawer-pf-notification-info {
color: inherit;
}
.drawer-pf-notification-message-expanded {
color: inherit;
font-weight: normal;
.word-break();
}
}
}
}
.panel-heading {
.panel-title {
color: @color-pf-black-700;
font-size: @font-size-h4;
font-weight: bold;
line-height: normal;
// TODO: hack to eliminate side-to-side wobble
// There is a hard-coded <h4> that wraps the header:
// - https://github.com/patternfly/angular-patternfly/issues/539
// I'm putting quite a bit of markup inside the header,
// need to tinker to eliminate this rule.
overflow:hidden;
.container-fluid {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}
.panel-counter {
font-size: @font-size-small;
font-weight: normal;
padding: 0;
a {
display: inline-block;
font-style: normal;
}
}
}
}