Skip to content

Commit 8d1ad55

Browse files
kolaentelafriks
authored andcommitted
Responsive design fixes (#4508)
* reset to master * build css * Fixed spacing
1 parent f847884 commit 8d1ad55

File tree

7 files changed

+113
-7
lines changed

7 files changed

+113
-7
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_dashboard.less

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
top: 7px;
2727
left: 90%;
2828
width: 15%;
29+
30+
@media only screen and (max-width: 768px) {
31+
top: 10px;
32+
left: auto;
33+
width: auto;
34+
right: 13px;
35+
}
2936
}
3037
}
3138

@@ -40,12 +47,16 @@
4047
right: 0!important;
4148
left: auto!important;
4249
}
50+
51+
@media only screen and (max-width: 768px) {
52+
width: 100%;
53+
}
4354
}
4455
.right.stackable.menu > .item.active {
4556
color: #d9453d;
4657
}
4758
}
48-
59+
4960
/* Accomodate for Semantic's 1px hacks on .attached elements */
5061
.dashboard-repos {
5162
margin: 0 1px;

public/less/_form.less

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
.user.reset.password,
103103
.user.signin,
104104
.user.signup {
105-
@input-padding: 200px!important;
105+
@input-padding: 200px;
106106
#create-page-form;
107107
form {
108108
width: 700px!important;
@@ -113,6 +113,12 @@
113113
.inline.field > label {
114114
width: @input-padding;
115115
}
116+
117+
.inline.field > label, input {
118+
@media only screen and (max-width: 768px) {
119+
width: 100% !important;
120+
}
121+
}
116122
}
117123
}
118124

@@ -137,19 +143,35 @@
137143
padding-left: 0 !important;
138144
text-align: center;
139145
}
146+
147+
@media only screen and (max-width: 768px) {
148+
label, input, .selection.dropdown {
149+
width: 100% !important;
150+
}
151+
152+
.field button, .field a {
153+
margin-bottom: 1em;
154+
width: 100%;
155+
}
156+
}
140157
}
141158
}
142159

143160
&.new.repo {
144161
.ui.form {
145-
.selection.dropdown:not(.owner) {
146-
width: 50%!important;
147-
}
148162
@media only screen and (min-width: 768px) {
149163
#auto-init {
150164
margin-left: @create-page-form-input-padding+15px;
151165
}
152166
}
167+
168+
.selection.dropdown:not(.owner) {
169+
width: 50%!important;
170+
171+
@media only screen and (max-width: 768px) {
172+
width: 100% !important;
173+
}
174+
}
153175
}
154176
}
155177
}
@@ -175,3 +197,16 @@
175197
font-family: monospace;
176198
}
177199
}
200+
201+
.new.org .ui.form {
202+
@media only screen and (max-width: 768px) {
203+
.field button, .field a{
204+
margin-bottom: 1em;
205+
width: 100%;
206+
}
207+
208+
.field input {
209+
width: 100% !important;
210+
}
211+
}
212+
}

public/less/_home.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@
4747
padding-top: 15px;
4848
padding-bottom: @footer-margin * 2;
4949
}
50+
51+
footer {
52+
@media only screen and (max-width: 880px) {
53+
text-align: center;
54+
}
55+
56+
.ui.container .left, .ui.container .right {
57+
@media only screen and (max-width: 880px) {
58+
display: inline;
59+
float: none;
60+
}
61+
}
62+
}

public/less/_repository.less

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,14 @@
172172
#clone-panel {
173173
width: 350px;
174174

175+
@media only screen and (max-width: 768px) {
176+
width: 100%;
177+
}
178+
175179
input {
176180
border-radius: 0;
177181
padding: 5px 10px;
182+
width: 50%;
178183
}
179184

180185
.clone.button {
@@ -220,6 +225,12 @@
220225
padding: 8px 10px;
221226
font-weight: normal;
222227
}
228+
229+
.ui.tiny.blue.buttons {
230+
@media only screen and (max-width: 768px) {
231+
width: 100%;
232+
}
233+
}
223234
}
224235

225236
#repo-files-table {
@@ -1229,6 +1240,20 @@
12291240
.prerelease.field {
12301241
margin-bottom: 0;
12311242
}
1243+
1244+
.field {
1245+
button, input {
1246+
@media only screen and (max-width: 438px) {
1247+
width: 100%;
1248+
}
1249+
}
1250+
1251+
button {
1252+
@media only screen and (max-width: 768px) {
1253+
margin-bottom: 1em;
1254+
}
1255+
}
1256+
}
12321257
}
12331258

12341259
&.forks {
@@ -1756,3 +1781,9 @@ tbody.commit-list {
17561781
#repo-topic {
17571782
margin-top: 5px;
17581783
}
1784+
1785+
.new-dependency-drop-list {
1786+
@media only screen and (max-width: 768px) {
1787+
width: 100%;
1788+
}
1789+
}

public/less/_user.less

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@
3737
}
3838
}
3939
}
40+
41+
#profile-avatar {
42+
@media only screen and (max-width: 768px) {
43+
height: 250px;
44+
overflow: hidden;
45+
46+
img {
47+
max-height: 768px;
48+
max-width: 768px;
49+
}
50+
}
51+
}
52+
53+
@media only screen and (max-width: 768px) {
54+
width: 100%;
55+
}
4056
}
4157

4258
.ui.repository.list {

templates/repo/release/new.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{end}}
1313
</h2>
1414
{{template "base/alert" .}}
15-
<form class="ui form grid" action="{{.Link}}" method="post">
15+
<form class="ui form stackable grid" action="{{.Link}}" method="post">
1616
{{.CsrfTokenHtml}}
1717
<div class="ui seven wide column target">
1818
<div class="inline field {{if .Err_TagName}}error{{end}}">

0 commit comments

Comments
 (0)