Skip to content

Commit 3d729e8

Browse files
authored
Merge pull request #34 from topcoder-platform/issues-506
Issues-506: Fixed styles for notification popup
2 parents cdda248 + 6257fbc commit 3d729e8

File tree

7 files changed

+118
-45
lines changed

7 files changed

+118
-45
lines changed

design/custom.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

design/custom.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

design/images/icon-close-2.svg

Lines changed: 19 additions & 0 deletions
Loading

src/scss/base/_categories.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,7 @@
2121
position: relative;
2222

2323
&::after {
24-
content: '';
25-
width: 3px;
26-
height: 3px;
27-
border-radius: 50%;
28-
background: $global-color_grey;
29-
position: absolute;
30-
display: block;
31-
right: -8px;
32-
margin-top: -2px;
33-
top: 50%;
24+
content: none
3425
}
3526
}
3627
}

src/scss/base/_discussions.scss

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,12 @@
8181
@media screen and (max-width: 768px) {
8282
.DataList.Discussions {
8383
li.ItemDiscussion {
84-
border-top: 1px solid $global-grey-bg;
85-
background-color: transparent;
84+
border-bottom: none;
85+
border-top: none;
86+
background-color: #f4f4f4;
87+
margin-bottom: 16px;
88+
padding: 18px 20px 0 25px!important;
8689
border-radius: 10px;
87-
padding: 19px 0 18px 0;
88-
border-radius: 0;
89-
margin-top: 0;
90-
position: relative;
9190

9291
&:first-child {
9392
border-top: none;
@@ -100,7 +99,7 @@
10099
.Options {
101100
position: absolute;
102101
top: 20px;
103-
right: 0;
102+
right: 5px;
104103
}
105104

106105
.Meta.Meta-Discussion {
@@ -119,31 +118,22 @@
119118

120119
&.status-container {
121120
.MCount,
122-
.Tag {
121+
.Tag, .MiddleDot {
123122
display: none;
124123
}
125124

126125
.MItem.Category {
127-
position: relative;
126+
display: none;
128127

129128
&::before {
130-
content: "";
131-
width: 3px;
132-
height: 3px;
133-
border-radius: 50%;
134-
background: $global-color_grey;
135-
position: absolute;
136-
display: block;
137-
left: -7px;
138-
margin-top: -2px;
139-
top: 50%;
129+
content: none;
140130
}
141131
}
142132

143133
}
144134

145135
&.view-comment-container {
146-
.MItem:not(.MCount),
136+
.MItem:not(.MCount,.MiddleDot),
147137
.Tag {
148138
display: none;
149139
}
@@ -152,16 +142,7 @@
152142
position: relative;
153143

154144
&::after {
155-
content: "";
156-
width: 3px;
157-
height: 3px;
158-
border-radius: 50%;
159-
background: $global-color_grey;
160-
position: absolute;
161-
display: block;
162-
right: -8px;
163-
margin-top: -2px;
164-
top: 50%;
145+
content: none;
165146
}
166147

167148
&.CommentCount {

src/scss/components/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
@import 'mebox';
33
@import "lists";
44
@import "easymde";
5-
@import "searchbox";
5+
@import "searchbox";
6+
@import "popup";

src/scss/components/_popup.scss

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
div.Popup {
2+
.Body {
3+
a {
4+
color: $global-blue;
5+
&:focus,
6+
&:hover {
7+
color: $global-blue;
8+
text-decoration: $theme-link-hover_textDecoration;
9+
}
10+
}
11+
.Buttons .Close {
12+
&:focus,
13+
&:hover {
14+
color: $global-color_white;
15+
}
16+
}
17+
}
18+
19+
20+
a.Close {
21+
top: 24px;
22+
right: 28px;
23+
@if ($staticVariables) {
24+
@include CloseButton($popup_fg);
25+
}
26+
}
27+
}
28+
.InformWrapper {
29+
margin: 0px;
30+
}
31+
.InformMessages {
32+
margin-left: 55px;
33+
}
34+
35+
.InformMessages .InformMessage {
36+
padding: 16px 34px 10px 26px;
37+
margin: 10px 0px;
38+
width: 436px;
39+
max-width: 436px;
40+
}
41+
.InformMessages .InformMessage,
42+
.InformMessages .InformMessage:hover {
43+
background-color: $global-color_white !important;
44+
border-radius: 10px;
45+
box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1) !important;
46+
font-size: $global-medium_fontSize;
47+
font-family: $global-body_fontFamily;
48+
49+
a {
50+
color: $global-blue;
51+
}
52+
53+
a.Close {
54+
top: 16px;
55+
right: 21px;
56+
57+
span::after {
58+
content: "";
59+
display: inline-block;
60+
background-size: cover;
61+
position: absolute;
62+
height: 12px;
63+
width: 12px;
64+
background-image: url("/themes/topcoder/design/images/icon-close-2.svg");
65+
}
66+
}
67+
}
68+
69+
@media (max-width: 500px) {
70+
.InformMessages {
71+
margin-left: 0px;
72+
}
73+
.InformWrapper {
74+
margin: 5px;
75+
}
76+
.InformMessages .InformMessage {
77+
width: 100%;
78+
max-width: 100%;
79+
}
80+
}
81+

0 commit comments

Comments
 (0)