Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Make search search teams as well #4222

Merged
merged 23 commits into from
Dec 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c2d8275
Get search teams by name to barely work.
mattbk Dec 2, 2016
cca0746
Add first 100 chars of product statement to search results.
mattbk Dec 2, 2016
f9d15ae
Improve team display.
mattbk Dec 3, 2016
62ed189
Add table classes like front page, but doesn't display right.
mattbk Dec 4, 2016
b6455ee
Tweaks.
mattbk Dec 5, 2016
e1125f9
Fool around with variables.
mattbk Dec 5, 2016
2508ab1
Put the right syntax together.
mattbk Dec 8, 2016
955f69d
Fix comment.
mattbk Dec 8, 2016
980e19c
Smooth out team display.
mattbk Dec 8, 2016
0379dc0
Replace team with project where possible.
mattbk Dec 8, 2016
8e2cd04
Clean up string truncation.
mattbk Dec 8, 2016
888b96b
Only populate results['usernames'] once
chadwhitacre Dec 14, 2016
52c02fb
Consolidate ADMIN search
chadwhitacre Dec 14, 2016
c325f48
Drop back to just searching project names
chadwhitacre Dec 14, 2016
25cdf13
Allow admins to search unapproved projects
chadwhitacre Dec 14, 2016
8fba7b6
Preserve parallelism with existing search sections
chadwhitacre Dec 14, 2016
e5cae9a
Remove now-unnecessary imports
chadwhitacre Dec 14, 2016
fbbde03
Remove "jump to elsewhere"
chadwhitacre Dec 15, 2016
d15bab1
Factor out homepage listing styles
chadwhitacre Dec 15, 2016
c7d0647
Restyle search results page to look like homepage
chadwhitacre Dec 15, 2016
a4a4a8c
Tighten up layout of numbers chart in listing
chadwhitacre Dec 15, 2016
003d2c4
Tighten up vertical spacing of search input
chadwhitacre Dec 15, 2016
4da2981
Fix regression with header sign-in drop-down
chadwhitacre Dec 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions js/gratipay/jump.js

This file was deleted.

121 changes: 121 additions & 0 deletions scss/components/listing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
table.listing {
width: 100%;

tr:first-child td { border-top: 0; }
tr:last-child td { border-bottom: 0; }

td.item {
position: relative;
color: $medium-gray;
border: 1px solid $light-brown;
border-style: solid none;
height: 64px;
padding-top: 35px;

a {
color: $medium-gray;
position: relative;
z-index: 2;
}
a:hover {
background: none !important;
color: $green !important;
}
img {
width: 48px;
height: 48px;
position: absolute;
top: 8px;
left: 0;
}
.name {
display: block;
color: $black;
font: bold 20px/24px $Ideal;
position: absolute;
z-index: 1;
top: 0;
left: 56px;
padding: 12px 0 0;
width: 100%;
height: 100%;
}
.details {
display: block;

/* duplicate width/max-width from layouts#wrapper to get overflow to work */
width: 98vw;
max-width: 576px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

padding-left: 56px;

font: normal 12px/15px $Ideal;
&.room-for-numbers {
padding-right: 80px;
}
.owner a {
color: $medium-gray;
position: relative;
z-index: 2;
}
.status-icon {
font-size: 12px;
padding: 0;
}
.description {
& * { display: inline; }
}
}
&:hover {
.room-for-numbers {
padding-right: 144px;
}
}
.numbers {
position: absolute;
bottom: 8px;
right: 0;
z-index: 0;
font-size: 11px;
line-height: 13px;
th {
text-align: right;
border-bottom: 1px solid transparent;
}
.label {
text-align: left;
}
td {
text-align: right;
padding: 1px 0 0 12px;
&:first-child {
padding-left: 0;
}
}
th, .label {
color: $medium-gray;
visibility: hidden;
}
}

&:hover {
color: $black;
.status a {
color: $black;
}
.owner a {
color: $black;
}
th, .label {
visibility: visible;
}
th {
border-bottom: 1px solid $light-brown;
}
}
}
}

65 changes: 0 additions & 65 deletions scss/fragments/mini-user.scss

This file was deleted.

9 changes: 5 additions & 4 deletions scss/layouts/layout.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
body {
padding: 0 12px;
}

#wrapper {
width: 98vw;
max-width: 576px;
margin: 0 auto;
}
Expand Down Expand Up @@ -85,6 +82,10 @@ body {
#content {
width: 384px;
display: table-cell;
&.without-sidebar {
width: auto;
}

vertical-align: top;
font: 300 14px/24px $Chronicle;

Expand Down
3 changes: 3 additions & 0 deletions scss/layouts/responsiveness.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
margin: 10px 0 40px;
min-height: 0;
}
#search form {
margin-top: 50px !important; /* compensate for smaller #main margin */
}
#sidebar {
padding-top: 20px;
}
Expand Down
102 changes: 0 additions & 102 deletions scss/pages/homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,106 +11,4 @@
top: 0;
right: 0;
}

table.teams {
width: 100%;

tr:first-child td { border-top: 0; }
tr:last-child td { border-bottom: 0; }

td.team {
position: relative;
color: $medium-gray;
border: 1px solid $light-brown;
border-style: solid none;

a {
color: $medium-gray;
position: relative;
z-index: 2;
}
a:hover {
background: none !important;
color: $green !important;
}
img {
width: 48px;
height: 48px;
position: absolute;
top: 8px;
left: 0;
}
.name {
display: block;
color: $black;
font: bold 20px/24px $Ideal;
position: absolute;
z-index: 1;
top: 0;
left: 56px;
padding: 12px 0 0;
width: 100%;
height: 100%;
}
.details {
font: normal 12px/15px $Ideal;
min-height: 64px;
padding: 38px 144px 0 56px;
.owner a {
color: $medium-gray;
position: relative;
z-index: 2;
}
span {
white-space: nowrap;
}
.status-icon {
font-size: 12px;
padding: 0;
}
}
.numbers {
position: absolute;
bottom: 8px;
right: 0;
z-index: 0;
font-size: 11px;
line-height: 13px;
th {
text-align: right;
border-bottom: 1px solid transparent;
}
.label {
text-align: left;
}
td {
text-align: right;
padding: 1px 0 0 12px;
&:first-child {
padding-left: 0;
}
}
th, .label {
color: $medium-gray;
visibility: hidden;
}
}

&:hover {
color: $black;
.status a {
color: $black;
}
.owner a {
color: $black;
}
th, .label {
visibility: visible;
}
th {
border-bottom: 1px solid $light-brown;
}
}
}
}
}
Loading