Skip to content

Commit

Permalink
Close #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown authored and Unknown committed Aug 31, 2016
1 parent 5cf9aff commit 07b0b2d
Show file tree
Hide file tree
Showing 4 changed files with 521 additions and 470 deletions.
229 changes: 127 additions & 102 deletions X.PagedList.Mvc.Example/Content/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ h5, h6 {
padding-bottom: 35px;
}

.main-content {
background: url("../Images/accent.png") no-repeat;
padding-left: 10px;
padding-top: 30px;
}
.main-content {
background: url("../Images/accent.png") no-repeat;
padding-left: 10px;
padding-top: 30px;
}

.featured + .main-content {
background: url("../Images/heroAccent.png") no-repeat;
}
.featured + .main-content {
background: url("../Images/heroAccent.png") no-repeat;
}

header .content-wrapper {
padding-top: 20px;
padding-top: 20px;
}

footer {
Expand All @@ -135,12 +135,12 @@ footer {
margin: 0;
}

.site-title a, .site-title a:hover, .site-title a:active {
background: none;
color: #c8c8c8;
outline: none;
text-decoration: none;
}
.site-title a, .site-title a:hover, .site-title a:active {
background: none;
color: #c8c8c8;
outline: none;
text-decoration: none;
}


/* login
Expand All @@ -160,12 +160,12 @@ footer {
text-decoration: none;
}

#login a.username {
background: none;
margin: 0;
padding: 0;
text-decoration: underline;
}
#login a.username {
background: none;
margin: 0;
padding: 0;
text-decoration: underline;
}

#login ul {
margin: 0;
Expand Down Expand Up @@ -199,10 +199,10 @@ ul#menu {
text-decoration: none;
}

ul#menu li a:hover {
color: #333;
text-decoration: none;
}
ul#menu li a:hover {
color: #333;
text-decoration: none;
}


/* page elements
Expand All @@ -218,27 +218,27 @@ ul#menu {
padding: 20px 40px 30px 40px;
}

.featured hgroup.title h1, .featured hgroup.title h2 {
color: #fff;
}
.featured hgroup.title h1, .featured hgroup.title h2 {
color: #fff;
}

.featured p {
font-size: 1.1em;
}
.featured p {
font-size: 1.1em;
}

/* page titles */
hgroup.title {
margin-bottom: 10px;
}

hgroup.title h1, hgroup.title h2 {
display: inline;
}
hgroup.title h1, hgroup.title h2 {
display: inline;
}

hgroup.title h2 {
font-weight: normal;
margin-left: 3px;
}
hgroup.title h2 {
font-weight: normal;
margin-left: 3px;
}

/* features */
section.feature {
Expand Down Expand Up @@ -350,12 +350,12 @@ aside {
width: 250px;
}

#loginForm input[type="checkbox"],
#loginForm input[type="submit"],
#loginForm input[type="button"],
#loginForm button {
width: auto;
}
#loginForm input[type="checkbox"],
#loginForm input[type="submit"],
#loginForm input[type="button"],
#loginForm button {
width: auto;
}

#socialLoginForm {
margin-left: 40px;
Expand All @@ -364,7 +364,7 @@ aside {
}

#socialLoginForm h2 {
margin-bottom: 5px;
margin-bottom: 5px;
}

#socialLoginList button {
Expand Down Expand Up @@ -415,9 +415,9 @@ label {
font-weight: 600;
}

label.checkbox {
display: inline;
}
label.checkbox {
display: inline;
}

input, textarea {
border: 1px solid #e2e2e2;
Expand All @@ -438,32 +438,32 @@ textarea {
border: 1px solid #7ac0da;
}

input[type="checkbox"] {
background: transparent;
border: inherit;
width: auto;
}
input[type="checkbox"] {
background: transparent;
border: inherit;
width: auto;
}

input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
border: 1px solid #787878;
cursor: pointer;
font-size: 1.2em;
font-weight: 600;
padding: 7px;
margin-right: 8px;
width: auto;
}
input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
border: 1px solid #787878;
cursor: pointer;
font-size: 1.2em;
font-weight: 600;
padding: 7px;
margin-right: 8px;
width: auto;
}

td input[type="submit"],
td input[type="button"],
td button {
font-size: 1em;
padding: 4px;
margin-right: 4px;
}
td input[type="submit"],
td input[type="button"],
td button {
font-size: 1em;
padding: 4px;
margin-right: 4px;
}

/* info and errors */
.message-info {
Expand Down Expand Up @@ -541,36 +541,36 @@ th {
position: relative;
}

th a:link, th a:visited, th a:active, th a:hover {
color: #333;
font-weight: 600;
text-decoration: none;
padding: 0;
}
th a:link, th a:visited, th a:active, th a:hover {
color: #333;
font-weight: 600;
text-decoration: none;
padding: 0;
}

th a:hover {
color: #000;
}
th a:hover {
color: #000;
}

th.asc a, th.desc a {
margin-right: .75em;
}

th.asc a:after, th.desc a:after {
display: block;
position: absolute;
right: 0em;
top: 0;
font-size: 0.75em;
}
th.asc a:after, th.desc a:after {
display: block;
position: absolute;
right: 0em;
top: 0;
font-size: 0.75em;
}

th.asc a:after {
content: '▲';
}
th.asc a:after {
content: '▲';
}

th.desc a:after {
content: '▼';
}
th.desc a:after {
content: '▼';
}

td {
padding: 0.25em 2em 0.25em 0em;
Expand Down Expand Up @@ -627,9 +627,9 @@ tr.pager td {
padding: 0;
}

#login a:hover {
color: #333;
}
#login a:hover {
color: #333;
}

/* menu */
nav {
Expand Down Expand Up @@ -694,12 +694,12 @@ tr.pager td {
background: none;
}

/* features */
section.feature {
/* features */
section.feature {
float: none;
padding: 10px;
width: auto;
}
}

section.feature img {
color: #999;
Expand Down Expand Up @@ -751,5 +751,30 @@ tr.pager td {
}

.pagination {
margin: 5px 0 25px 0 !important;
}
margin: 5px 0 25px 0 !important;
}

.btn {
padding: 6px 12px;
text-decoration: none;
background-color: #ffffff !important;
border: 1px solid #dddddd !important;
border-radius: 4px;
margin-left: 10px;
}

.form-control {
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<p>Example of paging a list:</p>

@Html.PagedListGoToPageForm((IPagedList)ViewBag.Names, Url.Action("Index"))
@Html.PagedListGoToPageForm((IPagedList)ViewBag.Names, Url.Action("Index"), new GoToFormRenderOptions {InputFieldClass = "form-control", InputWidth = 300, SubmitButtonClass = "btn", SubmitButtonWidth = 100})

<h3>List of @ViewBag.Names.TotalItemCount Names (Page Size: @ViewBag.Names.PageSize, Current Page: @ViewBag.Names.PageNumber)</h3>
<ol start="@ViewBag.Names.FirstItemOnPage">
Expand Down
Loading

0 comments on commit 07b0b2d

Please sign in to comment.