Skip to content

Commit 507ce13

Browse files
authored
Merge pull request #5 from joubertredrat/title-ui-fix
Small UI fixes on full width form titles
2 parents e4fe693 + bc7e92a commit 507ce13

File tree

3 files changed

+57
-26
lines changed

3 files changed

+57
-26
lines changed

public/css/gogs.css

+42-22
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,23 @@ pre.wrap,
3131
code.wrap {
3232
white-space: pre-wrap;
3333
/* CSS 3 */
34+
3435
word-break: break-word;
3536
}
3637
.dont-break-out {
3738
/* These are technically the same, but use both */
39+
3840
overflow-wrap: break-word;
3941
word-wrap: break-word;
4042
-ms-word-break: break-all;
4143
/* This is the dangerous one in WebKit, as it breaks things wherever */
44+
4245
word-break: break-all;
4346
/* Instead use this non-standard one: */
47+
4448
word-break: break-word;
4549
/* Adds a hyphen where the word breaks, if supported (No Blink) */
50+
4651
-ms-hyphens: auto;
4752
-moz-hyphens: auto;
4853
-webkit-hyphens: auto;
@@ -812,7 +817,7 @@ footer .ui.language .menu {
812817
border: solid 1px #ccc;
813818
border-bottom-color: #bbb;
814819
border-radius: 3px;
815-
box-shadow: inset 0 -1px 0 #bbb;
820+
box-shadow: inset 0 -1px 0 #bbbbbb;
816821
}
817822
.markdown:not(code) input[type="checkbox"] {
818823
vertical-align: middle !important;
@@ -883,7 +888,7 @@ footer .ui.language .menu {
883888
}
884889
.install form label {
885890
text-align: right;
886-
width: 320px !important;
891+
width: 320px;
887892
}
888893
.install form input {
889894
width: 35% !important;
@@ -892,7 +897,7 @@ footer .ui.language .menu {
892897
text-align: left;
893898
}
894899
.install form .field .help {
895-
margin-left: 335px !important;
900+
margin-left: 335px;
896901
}
897902
.install form .field.optional .title {
898903
margin-left: 38%;
@@ -927,18 +932,18 @@ footer .ui.language .menu {
927932
text-align: center;
928933
}
929934
#create-page-form form .header {
930-
padding-left: 280px !important;
935+
padding-left: 280px;
931936
}
932937
#create-page-form form .inline.field > label {
933938
text-align: right;
934-
width: 250px !important;
939+
width: 250px;
935940
word-wrap: break-word;
936941
}
937942
#create-page-form form .help {
938-
margin-left: 265px !important;
943+
margin-left: 265px;
939944
}
940945
#create-page-form form .optional .title {
941-
margin-left: 250px !important;
946+
margin-left: 250px;
942947
}
943948
#create-page-form form input,
944949
#create-page-form form textarea {
@@ -964,30 +969,30 @@ footer .ui.language .menu {
964969
.user.reset.password form .header,
965970
.user.signin form .header,
966971
.user.signup form .header {
967-
padding-left: 280px !important;
972+
padding-left: 280px;
968973
}
969974
.user.activate form .inline.field > label,
970975
.user.forgot.password form .inline.field > label,
971976
.user.reset.password form .inline.field > label,
972977
.user.signin form .inline.field > label,
973978
.user.signup form .inline.field > label {
974979
text-align: right;
975-
width: 250px !important;
980+
width: 250px;
976981
word-wrap: break-word;
977982
}
978983
.user.activate form .help,
979984
.user.forgot.password form .help,
980985
.user.reset.password form .help,
981986
.user.signin form .help,
982987
.user.signup form .help {
983-
margin-left: 265px !important;
988+
margin-left: 265px;
984989
}
985990
.user.activate form .optional .title,
986991
.user.forgot.password form .optional .title,
987992
.user.reset.password form .optional .title,
988993
.user.signin form .optional .title,
989994
.user.signup form .optional .title {
990-
margin-left: 250px !important;
995+
margin-left: 250px;
991996
}
992997
.user.activate form input,
993998
.user.forgot.password form input,
@@ -1013,14 +1018,15 @@ footer .ui.language .menu {
10131018
.user.reset.password form .header,
10141019
.user.signin form .header,
10151020
.user.signup form .header {
1016-
padding-left: 230px !important;
1021+
padding-left: 0 !important;
1022+
text-align: center;
10171023
}
10181024
.user.activate form .inline.field > label,
10191025
.user.forgot.password form .inline.field > label,
10201026
.user.reset.password form .inline.field > label,
10211027
.user.signin form .inline.field > label,
10221028
.user.signup form .inline.field > label {
1023-
width: 200px !important;
1029+
width: 200px;
10241030
}
10251031
.repository.new.repo form,
10261032
.repository.new.migrate form,
@@ -1036,24 +1042,24 @@ footer .ui.language .menu {
10361042
.repository.new.repo form .header,
10371043
.repository.new.migrate form .header,
10381044
.repository.new.fork form .header {
1039-
padding-left: 280px !important;
1045+
padding-left: 280px;
10401046
}
10411047
.repository.new.repo form .inline.field > label,
10421048
.repository.new.migrate form .inline.field > label,
10431049
.repository.new.fork form .inline.field > label {
10441050
text-align: right;
1045-
width: 250px !important;
1051+
width: 250px;
10461052
word-wrap: break-word;
10471053
}
10481054
.repository.new.repo form .help,
10491055
.repository.new.migrate form .help,
10501056
.repository.new.fork form .help {
1051-
margin-left: 265px !important;
1057+
margin-left: 265px;
10521058
}
10531059
.repository.new.repo form .optional .title,
10541060
.repository.new.migrate form .optional .title,
10551061
.repository.new.fork form .optional .title {
1056-
margin-left: 250px !important;
1062+
margin-left: 250px;
10571063
}
10581064
.repository.new.repo form input,
10591065
.repository.new.migrate form input,
@@ -1078,11 +1084,17 @@ footer .ui.language .menu {
10781084
.repository.new.fork form .dropdown .text i {
10791085
margin-right: 0!important;
10801086
}
1087+
.repository.new.repo form .header,
1088+
.repository.new.migrate form .header,
1089+
.repository.new.fork form .header {
1090+
padding-left: 0 !important;
1091+
text-align: center;
1092+
}
10811093
.repository.new.repo .ui.form .selection.dropdown:not(.owner) {
10821094
width: 50%!important;
10831095
}
10841096
.repository.new.repo .ui.form #auto-init {
1085-
margin-left: 265px !important;
1097+
margin-left: 265px;
10861098
}
10871099
.new.webhook form .help {
10881100
margin-left: 25px;
@@ -2328,14 +2340,18 @@ footer .ui.language .menu {
23282340
}
23292341
.settings .hook.list .item a {
23302342
/* These are technically the same, but use both */
2343+
23312344
overflow-wrap: break-word;
23322345
word-wrap: break-word;
23332346
-ms-word-break: break-all;
23342347
/* This is the dangerous one in WebKit, as it breaks things wherever */
2348+
23352349
word-break: break-all;
23362350
/* Instead use this non-standard one: */
2351+
23372352
word-break: break-word;
23382353
/* Adds a hyphen where the word breaks, if supported (No Blink) */
2354+
23392355
-ms-hyphens: auto;
23402356
-moz-hyphens: auto;
23412357
-webkit-hyphens: auto;
@@ -2534,23 +2550,27 @@ footer .ui.language .menu {
25342550
text-align: center;
25352551
}
25362552
.organization.new.org form .header {
2537-
padding-left: 280px !important;
2553+
padding-left: 280px;
25382554
}
25392555
.organization.new.org form .inline.field > label {
25402556
text-align: right;
2541-
width: 250px !important;
2557+
width: 250px;
25422558
word-wrap: break-word;
25432559
}
25442560
.organization.new.org form .help {
2545-
margin-left: 265px !important;
2561+
margin-left: 265px;
25462562
}
25472563
.organization.new.org form .optional .title {
2548-
margin-left: 250px !important;
2564+
margin-left: 250px;
25492565
}
25502566
.organization.new.org form input,
25512567
.organization.new.org form textarea {
25522568
width: 50%!important;
25532569
}
2570+
.organization.new.org form .header {
2571+
padding-left: 0 !important;
2572+
text-align: center;
2573+
}
25542574
.organization.options input {
25552575
min-width: 300px;
25562576
}

public/less/_form.less

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.form {
22
.help {
33
color: #999999;
4-
padding-top: .6em;
5-
padding-bottom: .6em;
6-
display: inline-block;
4+
padding-top: .6em;
5+
padding-bottom: .6em;
6+
display: inline-block;
77
}
88
}
99
.ui.attached.header {
@@ -56,7 +56,8 @@
5656
form {
5757
width: 700px!important;
5858
.header {
59-
padding-left: @input-padding+30px;
59+
padding-left: 0 !important;
60+
text-align: center;
6061
}
6162
.inline.field > label {
6263
width: @input-padding;
@@ -81,6 +82,10 @@
8182
}
8283
}
8384
}
85+
.header {
86+
padding-left: 0 !important;
87+
text-align: center;
88+
}
8489
}
8590
}
8691

public/less/_organization.less

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
&.new.org {
1919
#create-page-form;
20+
form {
21+
.header {
22+
padding-left: 0 !important;
23+
text-align: center;
24+
}
25+
}
2026
}
2127

2228
&.options {

0 commit comments

Comments
 (0)