Browse Source

Responsive design fixes (#4508)

* reset to master

* build css

* Fixed spacing
tags/v1.6.0-dev
kolaente 5 years ago
parent
commit
8d1ad55598

+ 1
- 1
public/css/index.css
File diff suppressed because it is too large
View File


+ 12
- 1
public/less/_dashboard.less View File

top: 7px; top: 7px;
left: 90%; left: 90%;
width: 15%; width: 15%;

@media only screen and (max-width: 768px) {
top: 10px;
left: auto;
width: auto;
right: 13px;
}
} }
} }


right: 0!important; right: 0!important;
left: auto!important; left: auto!important;
} }

@media only screen and (max-width: 768px) {
width: 100%;
}
} }
.right.stackable.menu > .item.active { .right.stackable.menu > .item.active {
color: #d9453d; color: #d9453d;
} }
} }
/* Accomodate for Semantic's 1px hacks on .attached elements */ /* Accomodate for Semantic's 1px hacks on .attached elements */
.dashboard-repos { .dashboard-repos {
margin: 0 1px; margin: 0 1px;

+ 39
- 4
public/less/_form.less View File

.user.reset.password, .user.reset.password,
.user.signin, .user.signin,
.user.signup { .user.signup {
@input-padding: 200px!important;
@input-padding: 200px;
#create-page-form; #create-page-form;
form { form {
width: 700px!important; width: 700px!important;
.inline.field > label { .inline.field > label {
width: @input-padding; width: @input-padding;
} }

.inline.field > label, input {
@media only screen and (max-width: 768px) {
width: 100% !important;
}
}
} }
} }


padding-left: 0 !important; padding-left: 0 !important;
text-align: center; text-align: center;
} }

@media only screen and (max-width: 768px) {
label, input, .selection.dropdown {
width: 100% !important;
}

.field button, .field a {
margin-bottom: 1em;
width: 100%;
}
}
} }
} }


&.new.repo { &.new.repo {
.ui.form { .ui.form {
.selection.dropdown:not(.owner) {
width: 50%!important;
}
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
#auto-init { #auto-init {
margin-left: @create-page-form-input-padding+15px; margin-left: @create-page-form-input-padding+15px;
} }
} }

.selection.dropdown:not(.owner) {
width: 50%!important;

@media only screen and (max-width: 768px) {
width: 100% !important;
}
}
} }
} }
} }
font-family: monospace; font-family: monospace;
} }
} }

.new.org .ui.form {
@media only screen and (max-width: 768px) {
.field button, .field a{
margin-bottom: 1em;
width: 100%;
}

.field input {
width: 100% !important;
}
}
}

+ 13
- 0
public/less/_home.less View File

padding-top: 15px; padding-top: 15px;
padding-bottom: @footer-margin * 2; padding-bottom: @footer-margin * 2;
} }

footer {
@media only screen and (max-width: 880px) {
text-align: center;
}

.ui.container .left, .ui.container .right {
@media only screen and (max-width: 880px) {
display: inline;
float: none;
}
}
}

+ 31
- 0
public/less/_repository.less View File

#clone-panel { #clone-panel {
width: 350px; width: 350px;


@media only screen and (max-width: 768px) {
width: 100%;
}

input { input {
border-radius: 0; border-radius: 0;
padding: 5px 10px; padding: 5px 10px;
width: 50%;
} }


.clone.button { .clone.button {
padding: 8px 10px; padding: 8px 10px;
font-weight: normal; font-weight: normal;
} }

.ui.tiny.blue.buttons {
@media only screen and (max-width: 768px) {
width: 100%;
}
}
} }


#repo-files-table { #repo-files-table {
.prerelease.field { .prerelease.field {
margin-bottom: 0; margin-bottom: 0;
} }

.field {
button, input {
@media only screen and (max-width: 438px) {
width: 100%;
}
}

button {
@media only screen and (max-width: 768px) {
margin-bottom: 1em;
}
}
}
} }


&.forks { &.forks {
#repo-topic { #repo-topic {
margin-top: 5px; margin-top: 5px;
} }

.new-dependency-drop-list {
@media only screen and (max-width: 768px) {
width: 100%;
}
}

+ 16
- 0
public/less/_user.less View File

} }
} }
} }

#profile-avatar {
@media only screen and (max-width: 768px) {
height: 250px;
overflow: hidden;

img {
max-height: 768px;
max-width: 768px;
}
}
}

@media only screen and (max-width: 768px) {
width: 100%;
}
} }


.ui.repository.list { .ui.repository.list {

+ 1
- 1
templates/repo/release/new.tmpl View File

{{end}} {{end}}
</h2> </h2>
{{template "base/alert" .}} {{template "base/alert" .}}
<form class="ui form grid" action="{{.Link}}" method="post">
<form class="ui form stackable grid" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="ui seven wide column target"> <div class="ui seven wide column target">
<div class="inline field {{if .Err_TagName}}error{{end}}"> <div class="inline field {{if .Err_TagName}}error{{end}}">

Loading…
Cancel
Save