-
Notifications
You must be signed in to change notification settings - Fork 13
Game Submission Page #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Game Submission Page #143
Changes from all commits
c4e4caa
47f41dc
b674dfd
c7adae5
bb2b7ec
045cb7f
fa2999f
65a1965
d3fe8ac
4df31a5
d969667
8d5e6d1
b7cd961
35a2f6e
ecd20ac
63ca8b2
564afae
0d1d7fa
517cb9a
912005d
d46d03a
73004d1
00c2611
8ed9479
f3ebe40
8962f4e
4072d02
f29ee4f
d7a58af
6005cbc
9a54633
360f51b
213b7a0
477f1cb
3e11614
5925936
498666b
102f7b6
f6b9fcd
3a94835
9676594
b8a7880
deebe26
c435ae0
d159d44
f44f8f2
eb0facd
01648e6
112cfa0
ec9efdf
c59f8b3
f7a9f6b
fd17b72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,239 @@ | ||
| @import 'lib'; | ||
|
|
||
| .media-preview { | ||
| cursor: pointer; | ||
| display: block; | ||
| .media { | ||
| .form-help { | ||
| margin-bottom: 5px; | ||
| margin-right: 50px; | ||
| } | ||
| .req:after { | ||
| bottom: auto; | ||
| top: 5px; | ||
| } | ||
| .media-left, | ||
| .media-right { | ||
| padding-right: 80px; | ||
| } | ||
| .media-size { | ||
| border: 1px solid $colorGrayLightest; | ||
| border-radius: 2px; | ||
| color: $colorGrayLighter; | ||
| display: inline-block; | ||
| font-size: 10px; | ||
| margin-top: 15px; | ||
| padding: 1px 3px; | ||
| .inner { | ||
| color: $colorGrayLightest; | ||
| } | ||
| } | ||
| input { | ||
| font-size: 12px; | ||
| } | ||
| input[type=file] { | ||
| display: none; | ||
| } | ||
| .media-item { | ||
| margin-bottom: 10px; | ||
| &.media-item-template { | ||
| display: none; | ||
| &:first-child { | ||
| display: block; | ||
| } | ||
| &:not(:first-child) + .add-button { | ||
| display: block; | ||
| } | ||
| } | ||
| &.add-item { | ||
| display: inherit; | ||
| } | ||
| } | ||
| .add-button { | ||
| display: none; | ||
| i { | ||
| margin-right: 3px; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .media-preview { | ||
| display: none; | ||
| margin-top: 5px; | ||
| max-height: 150px; | ||
| max-width: 200px; | ||
| .media-item { | ||
| .media-preview-container { | ||
| background-color: $mediaPreviewBackgroundColor; | ||
| border: $mediaPreviewBorder; | ||
| border-radius: 2px; | ||
| cursor: pointer; | ||
| display: block; | ||
| margin: 5px 0; | ||
| max-width: 100%; | ||
| position: relative; | ||
|
|
||
| img, iframe { | ||
| height: 100%; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🍟 |
||
| position: relative; | ||
| width: 100%; | ||
| z-index: 1; | ||
| } | ||
| .media-preview { | ||
| display: none; | ||
| } | ||
| &:before { | ||
| background: url('../img/game-submission/upload-blue.png') 50% 0 no-repeat; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you should sprite these images and just use |
||
| content: ""; | ||
| display: block; | ||
| position: absolute; | ||
| width: 100%; | ||
| } | ||
| &:after { | ||
| color: $colorLightBlue; | ||
| content: attr(data-message); | ||
| display: block; | ||
| position: absolute; | ||
| text-align: center; | ||
| } | ||
| } | ||
| &.processed { | ||
| .media-preview-container { | ||
| background: #fff url('../img/game-submission/crosshatch.png'); | ||
| border: 1px solid $colorGray; | ||
| .media-preview { | ||
| display: inherit; | ||
| } | ||
| .media-delete { | ||
| background-color: rgba(217,21,24,0.75); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what colour is this? seems arbitrary
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The red colour for the delete button |
||
| border: 1px solid #d91518; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what colour is this?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The red colour border for the delete button |
||
| border-radius: 5px; | ||
| bottom: 5px; | ||
| color: #fff; | ||
| cursor: pointer; | ||
| display: none; | ||
| height: 30px; | ||
| position: absolute; | ||
| width: 30px; | ||
| right: 5px; | ||
| text-align: center; | ||
| z-index: 2; | ||
| &:before { | ||
| content: "\00d7"; /* Cross symbol */ | ||
| font-size: 24px; | ||
| font-weight: 600; | ||
| line-height: 30px; | ||
| } | ||
| } | ||
| &:hover { | ||
| .media-delete { | ||
| display: inherit; | ||
| } | ||
| } | ||
| &:before { | ||
| background-image: none; | ||
| } | ||
| &:after { | ||
| content: ""; | ||
| } | ||
| } | ||
| .media-input { | ||
| display: none; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .icons .media-preview { | ||
| max-height: 128px; | ||
| max-width: 128px; | ||
| } | ||
| .icons { | ||
| .icons-dimensions { | ||
| border: 1px solid $colorGrayLighter; | ||
| border-radius: 2px; | ||
| color: $colorGrayLighter; | ||
| display: inline-block; | ||
| font-size: 10px | ||
| padding: 1px 3px; | ||
| } | ||
|
|
||
| .videos .media-preview { | ||
| max-height: 150px; | ||
| max-width: 200px; | ||
| .media-preview-container { | ||
| height: 128px; | ||
| width: 128px; | ||
| &:before { | ||
| background-size: 50px; | ||
| height: 50px; | ||
| top: 25px; | ||
| } | ||
| &:after { | ||
| bottom: 17px; | ||
| font-size: 12px; | ||
| margin-left: 20%; | ||
| width: 60%; | ||
| } | ||
| &.icons-64 { | ||
| height: 64px; | ||
| width: 64px; | ||
| &:before { | ||
| background-size: 25px; | ||
| top: 20px; | ||
| } | ||
| &:after { | ||
| content: ""; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .media-size { | ||
| color: $colorGrayLight; | ||
| font-size: 10px; | ||
| margin-top: 15px; | ||
| .screenshots { | ||
| .media-preview-container { | ||
| height: 210px; | ||
| &:before { | ||
| background-size: 80px; | ||
| height: 80px; | ||
| top: 50px; | ||
| } | ||
| &:after { | ||
| bottom: 35px; | ||
| margin-left: 32%; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because the width is 36%. This is obtained through trial and error with comparison to the mockups. 36 + 32 + 32 = 100% |
||
| width: 36%; | ||
| } | ||
| &.screenshots-16-9 { | ||
| height: 157px; | ||
| &:before { | ||
| top: 20px; | ||
| } | ||
| &:after { | ||
| bottom: 15px; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| input[type=url].media { | ||
| margin-bottom: 5px; | ||
| .icons, | ||
| .screenshots { | ||
| .media-preview-container.dragenter { | ||
| background-color: #efefef; | ||
| border-color: $colorGray; | ||
| &:before { | ||
| background-image: url('../img/game-submission/upload.png'); | ||
| } | ||
| &:after { | ||
| color: $colorGray; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .media { | ||
| .form-help { | ||
| margin-bottom: 5px; | ||
| margin-right: 50px; | ||
| } | ||
| .req:after { | ||
| bottom: auto; | ||
| top: 5px; | ||
| .videos { | ||
| .media-preview-container { | ||
| cursor: default; | ||
| height: 210px; | ||
| &:before { | ||
| background: url('../img/game-submission/preview-blue.png') 53% 0 no-repeat; | ||
| background-size: 80px; | ||
| height: 80px; | ||
| top: 60px; | ||
| } | ||
| &:after { | ||
| bottom: 55px; | ||
| content: attr(data-message); | ||
| width: 100%; | ||
| } | ||
| .media-iframe { | ||
| height: 100%; | ||
| width: 100%; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| input[type=url].media { | ||
| margin-bottom: 5px; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ body { | |
| } | ||
|
|
||
| main { | ||
| margin: 0 auto; | ||
| margin: 0 auto 40px; | ||
| width: 1200px; | ||
| } | ||
|
|
||
|
|
@@ -101,7 +101,7 @@ main { | |
| margin-bottom: 6px; | ||
| padding: 40px 35px; | ||
| h1 { | ||
| color: $colorGray; | ||
| color: $colorBlack; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does full black actually look better?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was following the |
||
| } | ||
| h2 { | ||
| color: $colorGrayDark; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,10 +54,13 @@ $colorGrayDark = #555; | |
| $colorGray = #777; | ||
| $colorGrayLight = #999; | ||
| $colorGrayUltraLight = #bbb; | ||
| $colorGrayLighter = #9d9d9d; | ||
| $colorGrayLightest = #d4d4d4; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is kind of a silly name lol |
||
| $colorWhite = #fff; | ||
| $colorRed = #da3e5a; | ||
| $colorGreen = #18a011; | ||
| $colorLightGreen = #7CCD2F; | ||
| $colorLightGreen = #7ccd2f; | ||
| $colorLightBlue = #98bada; | ||
|
|
||
| // ButtonColor | ||
| $buttonColorTeal = #40dfc2; | ||
|
|
@@ -80,6 +83,7 @@ $mainBackgroundColor = #f7f7f7; | |
| $mainFooterColor = rgba(45,57,74,0.9); | ||
| $mainFooterHoverColor = rgba(255,255,255,.1); | ||
| $cloakBackgroundColor = rgba(0,0,0,.9); | ||
| $mediaPreviewBackgroundColor = #eff; | ||
|
|
||
| // Legacy colors | ||
| $flamin-hot-cheetos-orange = #ff9500; | ||
|
|
@@ -100,6 +104,7 @@ $light-gray = #ccc | |
| $cellBorder = 1px solid #eee; | ||
| $cellBorderDark = 1px solid #ddd; | ||
| $fieldsetBorder = 1px solid #ddd; | ||
| $mediaPreviewBorder = 1px solid #3892e3; | ||
|
|
||
| // Modal | ||
| $modalBackgroundColor = #d8d8d8; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
combine with the selector above