mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
UI: basic label list
- create new label
This commit is contained in:
1144
public/css/gogs.min.css
vendored
1144
public/css/gogs.min.css
vendored
File diff suppressed because one or more lines are too long
278
public/css/jquery.minicolors.css
Normal file
278
public/css/jquery.minicolors.css
Normal file
File diff suppressed because one or more lines are too long
@@ -32,6 +32,24 @@ function initInstall() {
|
||||
});
|
||||
};
|
||||
|
||||
function initRepository(){
|
||||
if ($('.repository').length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('.labels').length == 0) {
|
||||
return;
|
||||
}
|
||||
$('.color-picker').each( function() {
|
||||
$(this).minicolors();
|
||||
});
|
||||
$('.precolors .color').click(function(){
|
||||
var color_hex = $(this).data('color-hex')
|
||||
$('.color-picker').val(color_hex);
|
||||
$('.minicolors-swatch-color').css("background-color", color_hex);
|
||||
});
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
// Semantic UI modules.
|
||||
$('.dropdown').dropdown();
|
||||
@@ -46,4 +64,5 @@ $(document).ready(function () {
|
||||
$('.poping.up').popup();
|
||||
|
||||
initInstall();
|
||||
initRepository();
|
||||
});
|
11
public/js/libs/jquery.minicolors.min.js
vendored
Normal file
11
public/js/libs/jquery.minicolors.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
public/js/libs/jquery.minicolors.png
Normal file
BIN
public/js/libs/jquery.minicolors.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
1
public/js/min/gogs-min.js
vendored
1
public/js/min/gogs-min.js
vendored
@@ -1 +0,0 @@
|
||||
$(document).ready(function(){$(".dropdown").dropdown({transition:"slide up"})});
|
@@ -41,6 +41,42 @@
|
||||
.navbar {
|
||||
height: 60px;
|
||||
padding-top: 20px;
|
||||
.ui.secondary.menu .item {
|
||||
margin-left: -10px;
|
||||
margin-top: -7px;
|
||||
&>.input {
|
||||
.new-label-input,
|
||||
.color-picker {
|
||||
background-color: white;
|
||||
border: 1px solid rgba(0,0,0,.15);
|
||||
}
|
||||
}
|
||||
.new-label-input {
|
||||
width: 150px;
|
||||
}
|
||||
.color-picker {
|
||||
height: 35px;
|
||||
width: auto;
|
||||
padding-left: 30px;
|
||||
}
|
||||
.minicolors-swatch.minicolors-sprite {
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
&.precolors {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
margin-right: 10px;
|
||||
width: 120px;
|
||||
.color {
|
||||
float: left;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.filter.menu .label.color {
|
||||
padding: 0 8px;
|
||||
@@ -50,9 +86,10 @@
|
||||
left: auto!important;
|
||||
}
|
||||
.issue.list {
|
||||
clear: both;
|
||||
list-style: none;
|
||||
font-size: 13px;
|
||||
padding-top: 45px;
|
||||
padding-top: 15px;
|
||||
.item {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 10px;
|
||||
@@ -79,4 +116,25 @@
|
||||
padding-top: 15px;
|
||||
}
|
||||
}
|
||||
.label.list {
|
||||
clear: both;
|
||||
padding-top: 15px;
|
||||
.item {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
a {
|
||||
font-size: 15px;
|
||||
padding-top: 5px;
|
||||
padding-right: 10px;
|
||||
color: #666;
|
||||
&:hover {
|
||||
color: #000;
|
||||
}
|
||||
&.open-issues {
|
||||
margin-right: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user