Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmunirdeb committed Dec 24, 2013
1 parent 5ec06db commit afc5fc7
Show file tree
Hide file tree
Showing 10 changed files with 230 additions and 3 deletions.
16 changes: 16 additions & 0 deletions AdminAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
namespace mdm\admin;
/**
* Description of AdminAssets
*
* @author MDMunir
*/
class AdminAsset extends \yii\web\AssetBundle
{
//put your code here
public $sourcePath = '@mdm/admin/assets/main';

public $css=[
'main.css',
];
}
211 changes: 211 additions & 0 deletions assets/main/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
body {
padding-top: 70px;
}

.footer {
border-top: 1px solid #ddd;
margin-top: 30px;
padding: 15px 0 30px;
}

.jumbotron {
text-align: center;
background-color: transparent;
}

.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}

.navbar-brand {
padding: 0;
margin: 0;
}

.default-index .generator {
min-height: 200px;
margin-bottom: 20px;
}

.list-group .glyphicon {
float: right;
}

.popover {
max-width: 400px;
width: 400px;
}

.hint-block {
display: none;
}

.default-view .sticky-value {
padding: 6px 12px;
background: lightyellow;
white-space: pre;
word-wrap: break-word;
}

.default-view .form-group label.help {
border-bottom: 1px dashed #888;
cursor: help;
}

.default-view .modal-dialog {
width: 800px;
}

.default-view .modal-dialog .error {
color: #d9534f;
}

.default-view .modal-dialog .content {
background: #fafafa;
border-left: #eee 5px solid;
padding: 5px 10px;
overflow: auto;
}

.default-view .modal-dialog code {
background: transparent;
}

.default-view-files table .action {
width: 100px;
}

.default-view-files table .check {
width: 25px;
text-align: center;
}

.default-view-results pre {
overflow: auto;
background-color: #333;
max-height: 300px;
color: white;
padding: 10px;
border-radius: 0;
white-space: nowrap;
}

.default-view-results pre .error {
background: #FFE0E1;
color: black;
padding: 1px;
}

.default-view-results .alert pre {
background: white;
}

.default-diff pre {
padding: 0;
margin: 0;
background: transparent;
border: none;
}

.default-diff pre del {
background: pink;
}

.default-diff pre ins {
background: lightgreen;
text-decoration: none;
}


.Differences {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
}

.Differences thead {
display: none;
}

.Differences tbody th {
text-align: right;
background: #FAFAFA;
padding: 1px 2px;
border-right: 1px solid #eee;
vertical-align: top;
font-size: 13px;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-weight: normal;
color: #999;
width: 5px;
}

.Differences td {
padding: 1px 2px;
font-size: 13px;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
}

.DifferencesSideBySide .ChangeInsert td.Left {
background: #dfd;
}

.DifferencesSideBySide .ChangeInsert td.Right {
background: #cfc;
}

.DifferencesSideBySide .ChangeDelete td.Left {
background: #f88;
}

.DifferencesSideBySide .ChangeDelete td.Right {
background: #faa;
}

.DifferencesSideBySide .ChangeReplace .Left {
background: #fe9;
}

.DifferencesSideBySide .ChangeReplace .Right {
background: #fd8;
}

.Differences ins, .Differences del {
text-decoration: none;
}

.DifferencesSideBySide .ChangeReplace ins, .DifferencesSideBySide .ChangeReplace del {
background: #fc0;
}

.Differences .Skipped {
background: #f7f7f7;
}

.DifferencesInline .ChangeReplace .Left,
.DifferencesInline .ChangeDelete .Left {
background: #fdd;
}

.DifferencesInline .ChangeReplace .Right,
.DifferencesInline .ChangeInsert .Right {
background: #dfd;
}

.DifferencesInline .ChangeReplace ins {
background: #9e9;
}

.DifferencesInline .ChangeReplace del {
background: #e99;
}

/* additional styles for typeahead.js-bootstrap.css */
.twitter-typeahead {
display: block !important;
}
.twitter-typeahead .tt-hint {
padding: 6px 12px !important;
}
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion components/Select2Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Select2Asset extends \yii\web\AssetBundle
/**
* @inheritdoc
*/
public $sourcePath = '@mdm/admin/assets';
public $sourcePath = '@mdm/admin/assets/select2';
/**
* @inheritdoc
*/
Expand Down
4 changes: 2 additions & 2 deletions views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @var \yii\web\View $this
* @var string $content
*/
$asset = yii\gii\GiiAsset::register($this);
$asset = \mdm\admin\AdminAsset::register($this);
?>
<?php $this->beginPage(); ?>
<!DOCTYPE html>
Expand All @@ -22,7 +22,7 @@
<?php $this->beginBody(); ?>
<?php
NavBar::begin([
'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
//'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
'brandUrl' => ['default/index'],
'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
]);
Expand Down

0 comments on commit afc5fc7

Please sign in to comment.