mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:50:56 +00:00
Sort out style of project list
This commit is contained in:
parent
3cbf5fa4f4
commit
68aff781af
4 changed files with 34 additions and 31 deletions
|
@ -27,17 +27,20 @@ block content
|
||||||
mixin projectList(projects)
|
mixin projectList(projects)
|
||||||
-each project in projects
|
-each project in projects
|
||||||
- project_id = project._id.toString()
|
- project_id = project._id.toString()
|
||||||
li.project_entry(id=project_id)
|
li.project_entry(id=project_id).container-fluid
|
||||||
label.checkbox.select-item
|
.row
|
||||||
input(type="checkbox")
|
.col-md-6
|
||||||
span.title
|
input(type="checkbox").select-item
|
||||||
a.projectName(href="/project/#{project._id}") #{project.name}
|
span.title
|
||||||
span.project-tags(data-project-id=project_id)
|
a.projectName(href="/project/#{project._id}") #{project.name}
|
||||||
- each tag in project.tags
|
span.project-tags(data-project-id=project_id)
|
||||||
mixin tag(project_id, tag.name, true)
|
- each tag in project.tags
|
||||||
span.owner
|
mixin tag(project_id, tag.name, true)
|
||||||
mixin formatOwnerText(project.accessLevel, project.publicAccesLevel)
|
.col-md-2
|
||||||
span.last-modified.isoDate #{project.lastUpdated.toISOString()}
|
span.owner
|
||||||
|
mixin formatOwnerText(project.accessLevel, project.publicAccesLevel)
|
||||||
|
.col-md-4
|
||||||
|
span.last-modified.isoDate #{project.lastUpdated.toISOString()}
|
||||||
|
|
||||||
.content.content-alt
|
.content.content-alt
|
||||||
.container
|
.container
|
||||||
|
@ -154,12 +157,15 @@ block content
|
||||||
.card.card-thin
|
.card.card-thin
|
||||||
- if (projects.length > 0)
|
- if (projects.length > 0)
|
||||||
ul.list-unstyled.project-list
|
ul.list-unstyled.project-list
|
||||||
li
|
li.container-fluid
|
||||||
label.checkbox.select-all
|
.row
|
||||||
input(type="checkbox")
|
.col-md-6
|
||||||
span.title TITLE
|
input(type="checkbox").select-all
|
||||||
span.owner OWNER
|
span.title TITLE
|
||||||
span.last-modified LAST MODIFIED
|
.col-md-2
|
||||||
|
span.owner OWNER
|
||||||
|
.col-md-4
|
||||||
|
span.last-modified LAST MODIFIED
|
||||||
mixin projectList(projects)
|
mixin projectList(projects)
|
||||||
- else
|
- else
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -38,13 +38,12 @@ form.project-search {
|
||||||
|
|
||||||
ul.project-list {
|
ul.project-list {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
height: 420px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
li {
|
li {
|
||||||
border-bottom: 1px solid @gray-lighter;
|
border-bottom: 1px solid @gray-lightest;
|
||||||
padding: (@line-height-base / 4) 0;
|
padding: (@line-height-computed / 4) 0;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
.last-modified, .owner {
|
.last-modified, .owner {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@ -54,34 +53,30 @@ ul.project-list {
|
||||||
border-bottom: 0 none;
|
border-bottom: 0 none;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: @gray-lighter;
|
background-color: @gray-lightest;
|
||||||
}
|
}
|
||||||
&:first-child:hover {
|
&:first-child:hover {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: lighten(@blue, 10%);
|
color: darken(@blue, 10%);
|
||||||
}
|
}
|
||||||
.select-item, .select-all, .title, .last-modified, .owner {
|
.select-item, .select-all, .title, .last-modified, .owner {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
margin-right: @line-height-base;
|
margin-right: @line-height-computed;
|
||||||
}
|
}
|
||||||
.select-item, .select-all {
|
.select-item, .select-all {
|
||||||
margin-left: @line-height-base / 4;
|
margin-left: @line-height-computed / 4;
|
||||||
}
|
|
||||||
.title {
|
|
||||||
width: 50%;
|
|
||||||
}
|
}
|
||||||
.last-modified, .owner {
|
.last-modified, .owner {
|
||||||
font-size: .8rem;
|
font-size: .8rem;
|
||||||
width: 15%;
|
|
||||||
}
|
}
|
||||||
.owner {
|
.owner {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
.projectName {
|
.projectName {
|
||||||
margin-right: @line-height-base;
|
margin-right: @line-height-computed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.project_entry {
|
.project_entry {
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
// For recommendations on resolving such conflicts, see
|
// For recommendations on resolving such conflicts, see
|
||||||
// http://getbootstrap.com/getting-started/#third-box-sizing
|
// http://getbootstrap.com/getting-started/#third-box-sizing
|
||||||
* {
|
* {
|
||||||
.box-sizing(border-box);
|
.box-sizing(border-box);}
|
||||||
}
|
|
||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
.box-sizing(border-box);
|
.box-sizing(border-box);
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
// Typography
|
// Typography
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
* {
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
Loading…
Reference in a new issue