From fb7d53dfb508f8ee358ec623bded28813f7f2fd8 Mon Sep 17 00:00:00 2001
From: tmont
<%= Html.DropDownListFor(model => model.GameId, Model.GetGameList()) %>
-
+
<% if (Model.CurrentUser != null && Model.CurrentUser.Group >= UserGroup.Admin) { %>
-
-
+
+
<% } %>
- Save System - Cancel + Save System + Cancel
- Save Publisher - Cancel + Save Publisher + Cancel
- Save Game - Cancel + Save Game + Cancel
@@ -143,7 +143,7 @@ <% if (Model.QuoteId > 0) { %> diff --git a/Src/VideoGameQuotes.Web/Views/Shared/MainMenu.ascx b/Src/VideoGameQuotes.Web/Views/Shared/MainMenu.ascx index 9d99362..3f643bd 100644 --- a/Src/VideoGameQuotes.Web/Views/Shared/MainMenu.ascx +++ b/Src/VideoGameQuotes.Web/Views/Shared/MainMenu.ascx @@ -11,5 +11,5 @@ <% } %>- + " title="permanent link to this quote"> <% if (Model.User != null && Model.User.Group >= UserGroup.Admin) { %> - " title="edit this quote"> + " title="edit this quote"> (<%= Model.Quote.FlagCount %>) <% } %>
diff --git a/Src/VideoGameQuotes.Web/Views/Shared/Site.Master b/Src/VideoGameQuotes.Web/Views/Shared/Site.Master index 5e5a853..6c0643f 100644 --- a/Src/VideoGameQuotes.Web/Views/Shared/Site.Master +++ b/Src/VideoGameQuotes.Web/Views/Shared/Site.Master @@ -8,7 +8,6 @@ - diff --git a/Src/VideoGameQuotes.Web/media/css/global.css b/Src/VideoGameQuotes.Web/media/css/global.css index c0cae87..706a7bc 100644 --- a/Src/VideoGameQuotes.Web/media/css/global.css +++ b/Src/VideoGameQuotes.Web/media/css/global.css @@ -1,6 +1,94 @@ -html { +/* reset */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +:focus { + outline: 0; +} +ins { + text-decoration: none; +} +del { + text-decoration: line-through; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +.clearfix:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; +} +* html .clearfix { zoom: 1; } /* IE6 */ +*:first-child+html .clearfix { zoom: 1; } /* IE7 */ + +.mir { letter-spacing : -1000em; } +/*\*/html>body .mir { letter-spacing : normal; text-indent : -999em; overflow : hidden;} + + + +/* defaults */ + +html { height: 100%; } +body { + height: 100%; +} +ul, ol { + list-style-position: outside; + margin-left: 20px; + padding: 5px; +} +ul { + list-style-type: disc; +} +ol { + list-style-type: decimal; +} +dt { + font-weight: bold; + padding: 2px; +} +dd { + margin-left: 20px; + padding: 2px; +} +/***************** end reset ***************/ + body { background-color: #EEEEEE; color: #000000; @@ -11,8 +99,9 @@ body { h1 { font-size: 5em; text-align: center; - margin-bottom: 10px; + margin: 0 auto 10px auto; padding: 5px; + width: 600px; } h2 { font-size: 3em; @@ -57,10 +146,6 @@ a.external { padding-right: 14px; } -.error-message { - padding-left: 18px; - background: transparent url(/media/images/error.png) no-repeat; -} .input-validation-error { background-color: #FFCCCC; } @@ -135,7 +220,6 @@ a.external { } - .paging-menu p { text-align: right; font-size: 80%; @@ -168,31 +252,45 @@ a.external { width: 500px; height: 120px; } -.create-new-link, .edit-link, .loading-link, .delete-link, .submit-link, .cancel-link { +#logo a, .add-icon, .edit-icon, .loading-icon, .delete-icon, .submit-icon, .cancel-icon, #search-submit, .quote-permalink, .quote-flag-icon, .error-icon { + background-image: url(/media/images/sprite.png); + background-repeat: no-repeat; +} +.add-icon, .edit-icon, .loading-icon, .delete-icon, .submit-icon, .cancel-icon, #search-submit, .quote-permalink, .quote-flag-icon, .error-icon { padding-left: 16px; margin-left: 2px; } -.create-new-link { - background: transparent url(/media/images/add.png) left center no-repeat; +.error-icon { + background-position: -128px -125px; + margin-right: 2px; } -.edit-link { - background: transparent url(/media/images/pencil.png) left center no-repeat; +.add-icon { + background-position: -64px -125px; } -.loading-link { +.edit-icon { + background-position: 0 -125px; +} +.loading-icon { background: transparent url(/media/images/loading.gif) left center no-repeat; } -.delete-link { - background: transparent url(/media/images/delete.png) left center no-repeat; +.delete-icon { + background-position: -112px -125px; } -.submit-link { - background: transparent url(/media/images/accept.png) left center no-repeat; +.submit-icon { + background-position: -96px -125px; } -.cancel-link { - background: transparent url(/media/images/cancel.png) left center no-repeat; +.cancel-icon { + background-position: -80px -125px; +} +.quote-permalink { + background-position: -32px -125px; +} +.quote-flag-icon { + background-position: -48px -125px; } .button-link { background-color: #FFFFFF; - padding: 2px 2px 2px 18px; + padding: 2px 2px 2px 0; border: 1px solid #999999 !important; color: #000000 !important; text-decoration: none; @@ -218,18 +316,14 @@ a.external { color: inherit; height: 125px; display: block; - background-image: url(/media/images/vgquotes.png); - background-position: center center; - background-repeat: no-repeat; + background-position: 0 0; } #login-dialog { padding: 10px; } -#search-submit { - cursor: pointer; -} + #wrapper { min-height: 100%; @@ -256,6 +350,10 @@ a.external { color: #000000; background-color: #EEEEEE; } +#search-submit { + background-position: -16px -125px; + cursor: pointer; +} #main { padding: 20px 20px 120px 20px; @@ -317,4 +415,109 @@ a.external { } #footer a:hover { text-decoration: underline; +} + + + +/* quote stuff */ +/* box shadow stuff from http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ */ + +.quote-container { + width: 600px; + margin: 0 auto 50px auto; + position: relative; +} + +.quote-container .quote-data .quote-score-container { + float: left; + font-family: Georgia, serif; + padding: 5px; +} +.quote-score { + cursor: help; +} +.quote-score, .vote-container { + text-align: center; +} +.vote-container { + height: 20px; +} +.quote-data { + margin-bottom: 10px; +} +.vote-for, .vote-against { + cursor: pointer; +} +.vote-for:hover, .vote-against:hover { + color: #46C46E; +} + +.quote-text { + float: left; + font-weight: bold; + font-size: 20px; +} + +.quote-score-container { + width: 40px; + font-size: 20px; +} +.quote-text { + box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + -moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + -webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; + background-color: #FFFFFF; + padding: 1.5em 1em; + width: 500px; + position: relative; +} +.quote-game-link { +} +.quote-categories a { + border: 1px solid #999999 !important; + background-color: #BBBBBB; + padding: 0 8px; + line-height: 26px; + display: block; + color: #FFFFFF !important; + position: relative; +} +.quote-categories a.game-link { + padding-left: 4px; +} +.quote-categories a.game-link img { + position: relative; + top: 3px; +} +.quote-categories a:hover { + background-color: #999999; + border: 1px solid #BBBBBB !important; +} +.quote-categories li { + float: left; + margin-right: 2px; +} + +.quote-details-created { + float: left; +} +.quote-links { + float: right; + text-align: right; + width: 100px; +} + +.flag-dialog { + width: 400px; + border: 2px ridge #000000; + background-color: #EEEEEE; +} +.flag-dialog textarea { + width: 394px; + height: 64px; +} +.flag-dialog .submit-container { + margin-top: 10px; + margin-bottom: 5px; + text-align: center; } \ No newline at end of file diff --git a/Src/VideoGameQuotes.Web/media/css/quote.css b/Src/VideoGameQuotes.Web/media/css/quote.css deleted file mode 100644 index cbcb6d1..0000000 --- a/Src/VideoGameQuotes.Web/media/css/quote.css +++ /dev/null @@ -1,111 +0,0 @@ -/* box shadow stuff from http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ */ - -.quote-container { - width: 600px; - margin: 0 auto 50px auto; - position: relative; -} - -.quote-container .quote-data .quote-score-container { - float: left; - font-family: Georgia, serif; - padding: 5px; -} -.quote-score { - cursor: help; -} -.quote-score, .vote-container { - text-align: center; -} -.vote-container { - height: 20px; -} -.quote-data { - margin-bottom: 10px; -} -.vote-for, .vote-against { - cursor: pointer; -} -.vote-for:hover, .vote-against:hover { - color: #46C46E; -} - -.quote-text { - float: left; - font-weight: bold; - font-size: 20px; -} - -.quote-score-container { - width: 40px; - font-size: 20px; -} -.quote-text { - box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; - -moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; - -webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; - background-color: #FFFFFF; - padding: 1.5em 1em; - width: 500px; - position: relative; -} -.quote-game-link { -} -.quote-categories a { - border: 1px solid #999999 !important; - background-color: #BBBBBB; - padding: 0 8px; - line-height: 26px; - display: block; - color: #FFFFFF !important; - position: relative; -} -.quote-categories a.game-link { - padding-left: 4px; -} -.quote-categories a.game-link img { - position: relative; - top: 3px; -} -.quote-categories a:hover { - background-color: #999999; - border: 1px solid #BBBBBB !important; -} -.quote-categories li { - float: left; - margin-right: 2px; -} - -.quote-details-created { - float: left; -} -.quote-links { - float: right; - text-align: right; - width: 100px; -} - -.flag-dialog { - width: 400px; - border: 2px ridge #000000; - background-color: #EEEEEE; -} -.flag-dialog textarea { - width: 394px; - height: 64px; -} -.flag-dialog .submit-container { - margin-top: 10px; - margin-bottom: 5px; - text-align: center; -} -.quote-flag-link, .quote-permalink { - padding-left: 16px; - background-repeat: no-repeat; -} -.quote-flag-link { - background-image: url(/media/images/flag_red.png); -} -.quote-permalink { - background-image: url(/media/images/link.png); -} \ No newline at end of file diff --git a/Src/VideoGameQuotes.Web/media/css/reset.css b/Src/VideoGameQuotes.Web/media/css/reset.css deleted file mode 100644 index 8422fba..0000000 --- a/Src/VideoGameQuotes.Web/media/css/reset.css +++ /dev/null @@ -1,89 +0,0 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-size: 100%; - vertical-align: baseline; - background: transparent; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -:focus { - outline: 0; -} -ins { - text-decoration: none; -} -del { - text-decoration: line-through; -} -table { - border-collapse: collapse; - border-spacing: 0; -} - -.clearfix:after { - visibility: hidden; - display: block; - font-size: 0; - content: " "; - clear: both; - height: 0; -} -* html .clearfix { zoom: 1; } /* IE6 */ -*:first-child+html .clearfix { zoom: 1; } /* IE7 */ - -.mir { letter-spacing : -1000em; } -/*\*/html>body .mir { letter-spacing : normal; text-indent : -999em; overflow : hidden;} - - - -/* defaults */ - -html { - height: 100%; -} -body { - height: 100%; -} -ul, ol { - list-style-position: outside; - margin-left: 20px; - padding: 5px; -} -ul { - list-style-type: disc; -} -ol { - list-style-type: decimal; -} -dt { - font-weight: bold; - padding: 2px; -} -dd { - margin-left: 20px; - padding: 2px; -} - diff --git a/Src/VideoGameQuotes.Web/media/images/sprite.png b/Src/VideoGameQuotes.Web/media/images/sprite.png new file mode 100644 index 0000000000000000000000000000000000000000..90068468bbd5497a39189f4a3edbca739168308b GIT binary patch literal 15103 zcmXwgWk8!v(>2AdxU{&t6nA%bLW;W-DHPY@Rvdy$ahKrkUfi9c#og@-_w#-~l501z z*=y(QnKQGKa8+fQkH`ebP*6}G