Skip to content

Commit 5463640

Browse files
geek1011lunny
authored andcommitted
Fix double borders on edit page (#1152) (#1153)
* Fix double borders on edit page (#1152) * Add border modifications to less file
1 parent 4e716fb commit 5463640

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

public/css/index.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,17 @@ footer .ui.language .menu {
14061406
.repository.file.editor .commit-form-wrapper {
14071407
padding-left: 64px;
14081408
}
1409+
.repository.file.editor .tab[data-tab="write"] {
1410+
padding: 0 !important;
1411+
}
1412+
.repository.file.editor .tab[data-tab="write"] .editor-toolbar {
1413+
border: none !important;
1414+
}
1415+
.repository.file.editor .tab[data-tab="write"] .CodeMirror {
1416+
border-left: none;
1417+
border-right: none;
1418+
border-bottom: none;
1419+
}
14091420
.repository.file.editor .commit-form-wrapper .commit-avatar {
14101421
float: left;
14111422
margin-left: -64px;
@@ -3003,4 +3014,4 @@ footer .ui.language .menu {
30033014
.signin .oauth2 img {
30043015
width: 32px;
30053016
height: 32px;
3006-
}
3017+
}

public/less/_editor.less

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,15 @@
77
.cm-comment {
88
background: inherit !important;
99
}
10-
}
10+
}
11+
.repository.file.editor .tab[data-tab="write"] {
12+
padding: 0 !important;
13+
}
14+
.repository.file.editor .tab[data-tab="write"] .editor-toolbar {
15+
border: none !important;
16+
}
17+
.repository.file.editor .tab[data-tab="write"] .CodeMirror {
18+
border-left: none;
19+
border-right: none;
20+
border-bottom: none;
21+
}

0 commit comments

Comments
 (0)