mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
More fixes for success UI
This commit is contained in:
+14
-18
@@ -2237,8 +2237,7 @@ img.wiki-image {
|
||||
}
|
||||
|
||||
.modal-actions button,
|
||||
.modal-actions a {
|
||||
background-size: white;
|
||||
.save-success a {
|
||||
font-weight: normal;
|
||||
color: #7092FF;
|
||||
border-bottom: 1px solid #CCC;
|
||||
@@ -2248,21 +2247,14 @@ img.wiki-image {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.modal-actions a {
|
||||
/* `button` elements have box-algin: auto, need
|
||||
compensate this for `a`*/
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.modal-actions button:hover,
|
||||
.modal-actions a:hover {
|
||||
.modal-actions button:hover
|
||||
.save-success a:hover {
|
||||
background-color: #ececec;
|
||||
}
|
||||
|
||||
.modal-actions a:before,
|
||||
.modal-actions button:before,
|
||||
.save-success a:before,
|
||||
.walkthrough a:before {
|
||||
background-size: white;
|
||||
display: block;
|
||||
content: '';
|
||||
height: 100px;
|
||||
@@ -2290,15 +2282,19 @@ img.wiki-image {
|
||||
/* Success Modal
|
||||
------------------------------------------------------- */
|
||||
|
||||
.modal-actions .twitter:before {
|
||||
.save-success a {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.save-success .osm:before {
|
||||
background-position: 0px -220px;
|
||||
}
|
||||
|
||||
.save-success .twitter:before {
|
||||
background-position: -100px -220px;
|
||||
}
|
||||
|
||||
.modal-actions .facebook {
|
||||
border-left: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.modal-actions .facebook:before {
|
||||
.save-success .facebook:before {
|
||||
background-position: -200px -220px;
|
||||
}
|
||||
|
||||
|
||||
+4
-7
@@ -19,12 +19,9 @@ iD.ui.Success = function(context) {
|
||||
.text(t('just_edited'));
|
||||
|
||||
var body = selection.append('div')
|
||||
.attr('class', 'body');
|
||||
.attr('class', 'body save-success');
|
||||
|
||||
var links = body.append('div')
|
||||
.attr('class', 'modal-actions cf');
|
||||
|
||||
links.append('a')
|
||||
body.append('a')
|
||||
.attr('class', 'col12 osm')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
@@ -32,7 +29,7 @@ iD.ui.Success = function(context) {
|
||||
})
|
||||
.text(t('view_on_osm'));
|
||||
|
||||
links.append('a')
|
||||
body.append('a')
|
||||
.attr('class', 'col12 twitter')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
@@ -41,7 +38,7 @@ iD.ui.Success = function(context) {
|
||||
})
|
||||
.text(t('success.tweet'));
|
||||
|
||||
links.append('a')
|
||||
body.append('a')
|
||||
.attr('class', 'col12 facebook')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
|
||||
Reference in New Issue
Block a user