Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

additional styles for cancel button

  • Loading branch information...
commit dfa6f4d7cc579d57cd014465faf8dfd08ba1ac9f 1 parent d2dd8dd
@brantwynn brantwynn authored
Showing with 12 additions and 11 deletions.
  1. +11 −10 dries/dries.css
  2. +1 −1  dries/dries.js
View
21 dries/dries.css
@@ -20,7 +20,7 @@
font-size: 20px;
font-weight: bold;
left: 15%;
- top: 15%;
+ top: 10%;
position: absolute;
padding: 20px;
z-index: 1002;
@@ -29,12 +29,16 @@
-webkit-appearance: none;
}
-.dries-btn {
- display: none;
+#dries-btn-wrap {
position: absolute;
- top: 70px;
- left: 48%;
+ left: 15%;
+ top: 10%;
z-index: 998;
+ width: 120px;
+}
+
+.dries-btn {
+ display: none;
-moz-box-shadow:inset 0px 1px 0px 0px #bee2f9;
-webkit-box-shadow:inset 0px 1px 0px 0px #bee2f9;
box-shadow:inset 0px 1px 0px 0px #bee2f9;
@@ -68,12 +72,9 @@
}
.dries-x {
- width: 30px;
+ float: right;
+ width: 29px;
display: none;
- position: absolute;
- top: 40px;
- left: 50%;
- z-index: 998;
-moz-box-shadow:inset 0px 0px 4px 0px #fab3ad;
-webkit-box-shadow:inset 0px 0px 4px 0px #fab3ad;
box-shadow:inset 0px 0px 4px 0px #fab3ad;
View
2  dries/dries.js
@@ -142,7 +142,7 @@
* Theme function that returns an overlay and buttons.
*/
Drupal.theme.prototype.driesElements = function() {
- return '<div id="dries-dim"></div><input type="submit" id="dries-edit" class="dries-btn" value="' + Drupal.t('Edit') + '" /><input type="submit" class="dries-btn" id="dries-save" value="' + Drupal.t('Save') + '" /><input type="submit" class="dries-x" id="dries-cancel" value="' + Drupal.t('X') + '" />';
+ return '<div id="dries-dim"></div><div id="dries-btn-wrap"><input type="submit" id="dries-edit" class="dries-btn" value="' + Drupal.t('Edit') + '" /><input type="submit" class="dries-btn" id="dries-save" value="' + Drupal.t('Save') + '" /><input type="submit" class="dries-x" id="dries-cancel" value="' + Drupal.t('X') + '" /></div>';
}
})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.