aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js19
-rw-r--r--p/themes/Origine/origine.css6
-rw-r--r--p/themes/Origine/template.css13
-rw-r--r--p/themes/icons/bookmark-add.svg6
4 files changed, 36 insertions, 8 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index f1dd7117c..5a3b25c3f 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -975,11 +975,6 @@ function init_print_action() {
function init_share_observers() {
shares = $('.form-group:not(".form-actions")').length;
- $('.post').on('click', '.share.remove', function(e) {
- e.preventDefault();
- $(this).parents('.form-group').remove();
- });
-
$('.share.add').on('click', function(e) {
var opt = $(this).siblings('select').find(':selected');
var row = $(this).parents('form').data(opt.data('form'));
@@ -994,6 +989,19 @@ function init_share_observers() {
});
}
+function init_remove_observers() {
+ $('.post').on('click', 'a.remove', function(e) {
+ var remove_what = $(this).attr('data-remove');
+
+ if (remove_what !== undefined) {
+ var remove_obj = $('#' + remove_what);
+ remove_obj.remove();
+ }
+
+ return false;
+ });
+}
+
function init_feed_observers() {
$('select[id="category"]').on('change', function() {
var detail = $('#new_category_name').parent();
@@ -1054,6 +1062,7 @@ function init_all() {
window.setInterval(refreshUnreads, 120000);
} else {
init_share_observers();
+ init_remove_observers();
init_feed_observers();
init_password_observers();
}
diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css
index 1835e9ff9..cd40dc509 100644
--- a/p/themes/Origine/origine.css
+++ b/p/themes/Origine/origine.css
@@ -362,6 +362,10 @@ a.btn {
padding: 0 25px;
line-height: 2.5em;
}
+.dropdown-menu > .item > span {
+ padding: 0 25px;
+ line-height: 2em;
+}
.dropdown-menu > .item:hover {
background: #0062BE;
color: #fff;
@@ -400,7 +404,7 @@ a.btn {
font-size: 0.9em;
}
.alert-head {
- font-size: 1.2em;
+ font-size: 1.15em;
}
.alert > a {
color: inherit;
diff --git a/p/themes/Origine/template.css b/p/themes/Origine/template.css
index f68fdfca3..09ecaf685 100644
--- a/p/themes/Origine/template.css
+++ b/p/themes/Origine/template.css
@@ -180,7 +180,8 @@ a.btn {
.dropdown-menu > .item {
display: block;
}
-.dropdown-menu > .item > a {
+.dropdown-menu > .item > a,
+.dropdown-menu > .item > span {
display: block;
}
.dropdown-menu > .item[aria-checked="true"] > a:before {
@@ -220,10 +221,16 @@ a.btn {
display: block;
width: 90%;
}
+.group-controls .alert {
+ width: 100%
+}
.alert-head {
margin: 0;
font-weight: bold;
}
+.alert ul {
+ margin: 5px 20px;
+}
/*=== Icons */
.icon {
@@ -587,7 +594,9 @@ a.btn {
.aside .btn-important,
.aside .feeds .dropdown,
.flux_header .item.website span,
- .item.date, .day .date {
+ .item.date, .day .date,
+ .dropdown-menu > .no-mobile,
+ .no-mobile {
display: none;
}
.nav-login {
diff --git a/p/themes/icons/bookmark-add.svg b/p/themes/icons/bookmark-add.svg
new file mode 100644
index 000000000..51db9c498
--- /dev/null
+++ b/p/themes/icons/bookmark-add.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16">
+<g transform="translate(-141.0002,-807)" fill="#bebebe">
+<path d="m143,807,0,13,4-4,4,4,0-4,0-1-2,0,0-4,2,0,0-4z"/>
+<path d="m152,810,0,2-2,0,0,2,2,0,0,2,2,0,0-2,2,0,0-2-2,0,0-2-2,0z"/>
+</g>
+</svg> \ No newline at end of file