Skip to content

Commit

Permalink
Big commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadosh committed Sep 9, 2014
1 parent f061ef5 commit 98049b5
Show file tree
Hide file tree
Showing 34 changed files with 683 additions and 171 deletions.
2 changes: 1 addition & 1 deletion Admin/Notifier.php
Expand Up @@ -3,7 +3,7 @@
namespace Amarkal\Admin;

/**
* Implements an admin notifyer.
* Implements an admin notifier.
*
* Use this class to print admin notices. If the $page parameter is specified,
* the notification will only be printed on that page. Otherwise, the notification
Expand Down
2 changes: 1 addition & 1 deletion Assets/css/options.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Assets/js/_options_field_Textarea.js
@@ -0,0 +1,8 @@
jQuery(document).ready(function($){
$('.ao-field-textarea textarea').resizable({
minHeight: 150,
minWidth: 250
});
$('.ui-resizable-s').html('<i class="fa fa-bars"></i>');
$('.ui-resizable-e').html('<i class="fa fa-bars fa-rotate-90"></i>');
});
5 changes: 1 addition & 4 deletions Assets/js/_widget_field_Select.js
Expand Up @@ -4,9 +4,6 @@
(function ($) {
// Fired when the widget is updated (saved/dragged/refreshed)
$(document).bind('widget_init', function(event, widget){
// Set select button click event
$('.amarkal-widget .select-button').click(function() {
$(this).parent().find('select').focus();
});
$(".amarkal-widget.select select").select2({width:'resolve'});
});
}(jQuery));
4 changes: 2 additions & 2 deletions Assets/js/options.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/js/tooltip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Assets/js/widget.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 58 additions & 6 deletions Assets/sass/_options_core.scss
Expand Up @@ -83,36 +83,35 @@ $break-large: 920px;

a {
margin: 0;
padding: 7px 13px;
padding: 7px;
text-decoration:none;
display: block;
outline: 0;
color: $theme-color2;

i {
margin-right: 10px;
@include transition( all .2s ease-in-out );
width: 30px;
text-align: center;
@include transition( all .1s ease-in-out );

&.fa {font-size: 18px}
&.dashicons {font-size: 20px}
}

span {
@media screen and (max-width: $break-small) {display:none;}
@include transition( all .2s ease-in-out );
}
}

&:hover {
i {@include scale( 1.2 );}
span {padding-left:10px}
}

&:hover:not(.active) {
border-left: 3px solid;

a {
padding-left: 10px;
padding-left: 4px;
}
}

Expand Down Expand Up @@ -149,6 +148,57 @@ $break-large: 920px;

&.active {display:block}

.notification {
margin: 5px;
padding-left: 45px;
border-style: solid;
border-width: 0;
border-left-width: 5px;
position: relative;

p {
display: inline-block;
}

+ .notification {
margin-top: -5px;
}

&:before {
font-family: FontAwesome;
font-size: 24px;
position: absolute;
left: 13px;
top: 0;
bottom: 0;
line-height: 45px;
}

&.info {
color: rgb(47, 114, 177);
border-color: rgb(47, 114, 177);
background-color: rgb(155, 231, 255);

&:before {content: "\f05a";}
}

&.success {
color: #2FB15E;
border-color: #2FB15E;
background-color: #CAFFBA;

&:before {content: "\f058";}
}

&.errors {
color: #B81919;
border-color: #B81919;
background-color: #FFC8C8;

&:before {content: "\f057";}
}
}

.section-header {
margin: 5px;
border: $border;
Expand Down Expand Up @@ -259,6 +309,8 @@ $break-large: 920px;
display: inline-block;
vertical-align: middle;
width: 68%;

&.full-width{ width: 100%;}
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions Assets/sass/_options_field_Content.scss
@@ -0,0 +1,14 @@
.ao-field-content {
font-size: 14px;

.aligncenter {clear: both; display: block; margin-left:auto; margin-right: auto;}
.alignleft {float:left;margin-right:10px}
.alignright {float:right;margin-left:10px}

img {margin-top:10px;margin-bottom:10px}

ul {
padding-left: 28px;
list-style-type: square;
}
}

0 comments on commit 98049b5

Please sign in to comment.