Skip to content

Commit b0ae8ad

Browse files
committed
Add some depth. Clean up .group-list. Style disabled buttons.
1 parent 4b2e068 commit b0ae8ad

File tree

2 files changed

+50
-13
lines changed

2 files changed

+50
-13
lines changed

src/sentry/static/sentry/less/sentry.less

Lines changed: 48 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,21 @@ footer {
382382
/* ============================= Modules ============================== */
383383

384384
.form-control {
385-
box-shadow: none;
385+
box-shadow: inset 0 1px 1px rgba(70, 82, 98, 0.05);
386386
height: auto;
387-
border: 1px solid #E9EBEC;
387+
border: 1px solid #e1e4e5;
388+
padding: 8px 12px 7px;
389+
390+
&:focus {
391+
box-shadow: none;
392+
border-color: @blue;
393+
}
388394
}
389395

390396
.btn {
391397
border: 1px solid transparent;
392-
font-weight: 600;
398+
font-weight: 500;
399+
.transition(all .1s);
393400

394401
&:active {
395402
box-shadow: none;
@@ -414,6 +421,7 @@ footer {
414421
color: #34343f;
415422
background-color: #f6f7f8;
416423
border-color: #e1e4e5;
424+
box-shadow: 0 1px 1px rgba(70, 82, 98, 0.05);
417425
&:hover, &:focus, &:active {
418426
color: #34343f;
419427
background-color: #f1f2f3;
@@ -440,6 +448,15 @@ footer {
440448
.box-shadow(none);
441449
}
442450

451+
// Disabled buttons
452+
453+
.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active, .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active {
454+
color: lighten(@gray, 50);
455+
border-color: lighten(@gray, 58);
456+
background: #fff;
457+
opacity: 1;
458+
}
459+
443460
.nav {
444461
li {
445462
a {
@@ -464,7 +481,7 @@ footer {
464481
&.active {
465482
a, a:hover {
466483
color: #fff;
467-
background: @blue;
484+
background: darken(@blue, 3);
468485
}
469486
}
470487
}
@@ -481,6 +498,7 @@ footer {
481498
background: #fff;
482499
color: #808088;
483500
border-color: #e1e4e5;
501+
box-shadow: inset 0 1px 1px rgba(70, 82, 98, 0.05);
484502
&:hover {
485503
color: @gray;
486504
}
@@ -544,7 +562,7 @@ footer {
544562
}
545563
.search-input {
546564
padding: 8px 20px 7px 40px;
547-
box-shadow: none;
565+
box-shadow: inset 0 1px 1px rgba(70, 82, 98, 0.05);
548566
border: 1px solid #e1e4e5;
549567
font-size: 15px;
550568
background: #fff;
@@ -784,7 +802,7 @@ a.icon-share {
784802
// Affix styles
785803

786804
.group-header-container {
787-
margin-bottom: -49px;
805+
margin-bottom: -45px;
788806
> .container {
789807
left: -15px;
790808
}
@@ -817,13 +835,12 @@ a.icon-share {
817835
}
818836

819837
.group-list {
820-
margin-top: 49px;
838+
margin-top: 45px;
821839
}
822840

823841
.group-header {
824842
display: table;
825843
width: 100%;
826-
margin-bottom: 3px;
827844
}
828845

829846
.stream-pagination {
@@ -1023,11 +1040,13 @@ a.icon-share {
10231040
}
10241041

10251042
.group-list, .events {
1026-
.list-unstyled;
10271043
.list-unstyled;
10281044
margin-bottom: 20px;
10291045
display: table;
10301046
width: 100%;
1047+
box-shadow: 0 1px 1px rgba(70, 82, 98, .04);
1048+
border-radius: 4px;
1049+
10311050
.group {
10321051
display: table-row;
10331052
background: transparent;
@@ -1038,9 +1057,9 @@ a.icon-share {
10381057
.event-details:after {
10391058
position: absolute;
10401059
content: "";
1041-
top: -3px;
1060+
top: -1px;
10421061
right: 0;
1043-
bottom: -3px;
1062+
bottom: -1px;
10441063
left: 0;
10451064
width: 4px;
10461065
background: #54adff;
@@ -1064,6 +1083,20 @@ a.icon-share {
10641083
.event-cell{
10651084
border-top: 0;
10661085
}
1086+
.event-details:after {
1087+
top: 0;
1088+
}
1089+
}
1090+
&:last-child {
1091+
.event-cell {
1092+
border-bottom: 1px solid #E9EBEC;
1093+
}
1094+
.event-details {
1095+
border-radius: 0 0 0 4px;
1096+
}
1097+
.event-users {
1098+
border-radius: 0 0 4px 0;
1099+
}
10671100
}
10681101
}
10691102

@@ -1144,6 +1177,10 @@ a.icon-share {
11441177
margin-left: 30px;
11451178
}
11461179

1180+
.event-users {
1181+
border-right: 1px solid #E9EBEC;
1182+
}
1183+
11471184
.event-users, .event-occurrences {
11481185
vertical-align: middle;
11491186
padding-left: 30px;

src/sentry/templates/sentry/groups/group_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
</ul>
9999
</div>
100100
<div class="stream-actions-occurrences stream-actions-cell align-center hidden-xs"> events</div>
101-
<div class="stream-actions-users stream-actions-cell align-right hidden-xs"> users</div>
101+
<div class="stream-actions-users stream-actions-cell align-center hidden-xs"> users</div>
102102
</div>
103103
</div>
104104
</div>
@@ -138,7 +138,7 @@ <h3><a href="<% group.permalink %>"><% group.title %></a></h3>
138138
<div class="hidden-xs event-occurrences align-center event-cell">
139139
<span count="group.count"></span>
140140
</div>
141-
<div class="hidden-xs event-users align-right event-cell">
141+
<div class="hidden-xs event-users align-center event-cell">
142142
<span count="group.tags['sentry:user'].count || 0"></span>
143143
</div>
144144
</li>

0 commit comments

Comments
 (0)