* [DEV] Switched to SASS CSS processor

This commit is contained in:
nuxsmin
2016-12-31 15:55:26 +01:00
parent 4280b9ec2f
commit 8e852fa519
19 changed files with 2306 additions and 1430 deletions

View File

@@ -0,0 +1,148 @@
html, body {
margin: 0;
padding: 0;
text-align: left;
background-color: #f5f5f5;
color: #555;
font-size: 12px;
font-weight: normal;
box-sizing: border-box;
}
* {
font-family: $font-stack;
box-sizing: inherit;
&:before, &:after {
box-sizing: inherit;
}
}
table {
font-size: 11px;
border-spacing: 0;
th {
border-bottom: 2px solid transparent;
vertical-align: middle;
.icon {
width: 24px;
height: 24px;
}
}
tr {
&.odd {
background-color: #f9f9f9;
}
&.even > td, &.odd > td {
border-bottom: 1px solid #d9d9d9 !important;
}
&.even:hover, &.odd:hover {
background-color: #e8ff99;
}
height: 20px;
}
td {
padding: 3px;
&.txtCliente {
font-weight: bold;
text-align: center;
}
}
}
form {
font-size: 11px;
margin: 0;
}
input.inputImg, img.inputImg {
background-color: transparent !important;
width: 24px !important;
height: 24px !important;
border: 0;
vertical-align: middle;
margin: 0 0.5em;
}
input {
&.txtFile {
width: 200px;
}
&.txtLong {
width: 300px;
}
}
textarea {
width: 350px;
resize: none;
}
select.files {
width: 250px;
}
input.spinner {
width: 5em;
}
img {
margin: 0;
padding: 0;
border: 0;
cursor: pointer;
&.inputImgMini {
background-color: transparent !important;
width: 16px !important;
height: 16px !important;
margin: 0 5px 0 5px;
border: 0;
vertical-align: middle;
}
}
i {
cursor: pointer;
}
form .form-field {
display: flex;
justify-content: space-between;
> {
label {
min-width: 12em;
padding: .5em 0;
font-size: 16px;
align-self: center;
}
div {
width: 100%;
align-self: center;
}
}
}
a {
text-decoration: none;
color: $color-indigo-fg-accent;
&:visited {
text-decoration: none;
color: $color-indigo-fg-accent;
}
&:hover, &:active, &:focus {
text-decoration: none;
/*color: rgba(83, 109, 254, .6);*/
cursor: pointer;
}
}
pre, code, samp, kbd {
font-family: $font-stack-mono;
font-size: 1em;
direction: ltr;
text-align: left;
background-color: #fbfaf9;
color: #333;
box-shadow: inset 0 0 .3em #ccc;
border-radius: 2px;
}

View File

@@ -0,0 +1,58 @@
#login-container {
width: 40em;
margin: 0 auto;
background: transparent url("../imgs/logo_full_bg.png") no-repeat top left;
background-size: auto 10em;
#boxLogin {
position: relative;
margin: 11em auto 0 auto;
width: 100%;
min-height: 12em;
padding: 1em;
background-color: #fff;
#boxData {
height: 100%;
min-height: 14em;
/*margin-bottom: 10em;*/
text-align: left;
background-color: transparent;
i {
margin-right: .5em;
opacity: .5;
}
}
#boxButton {
position: absolute;
top: 2em;
right: 2em;
}
#boxActions {
position: absolute;
bottom: 1em;
right: 1em;
width: 100%;
padding: .5em;
text-align: right;
a {
color: #c9c9c9;
}
}
}
#boxLogout {
width: 250px;
margin: 8em auto 0 auto;
font-size: 14px;
text-align: center;
padding: 0.5em;
@include color-amber();
}
#boxUpdated {
width: 350px;
margin: 5em auto 5em auto;
font-size: 14px;
text-align: center;
padding: 0.5em;
@include color-teal();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -70,7 +70,7 @@
<tr>
<td class="descField"><?php echo _('Grupo Principal'); ?></td>
<td class="valField">
<select id="selMainGroupId" name="mainGroupId" class="select-box sel-chosen-usergroup" required>
<select id="selMainGroupId" name="mainGroupId" class="select-box sel-chosen-usergroup">
<option value=""><?php echo _('Seleccionar Grupo'); ?></option>
<?php foreach ($otherGroups as $group): ?>
<option

View File

@@ -8,7 +8,7 @@
<div class="pager-left">
<?php echo $data->getData()->getDataCount(); ?> @ <?php echo $data->getTime(); ?>s
<?php if ($data->getPager()->getFilterOn()): ?>
<span class="filterOn round"><?php echo _('Filtro ON'); ?></span>
<span class="filter-on round"><?php echo _('Filtro ON'); ?></span>
<?php endif; ?>
</div>
<div class="pager-right">
@@ -37,7 +37,7 @@
class="mdl-tooltip mdl-tooltip--top"><?php echo $data->getPager()->getIconPrev()->getTitle(); ?></span>
<?php endif; ?>
&nbsp;
<?php echo $data->getPager()->getFirstPage(), '/', $data->getPager()->getLastPage(); ?>
<?php printf('%d / %d (%d)', $data->getPager()->getFirstPage(), $data->getPager()->getLastPage(), $data->getPager()->getLimitCount()); ?>
&nbsp;
<?php if ($data->getPager()->getLimitStart() < $data->getPager()->getTotalRows() && $data->getPager()->getFirstPage() != $data->getPager()->getLastPage()): ?>
<i id="btn-pager-next"

View File

@@ -6,14 +6,8 @@
use SP\Html\Html;
?>
<!-- Rows -->
<?php if ($data->getData()->getDataCount() === 0): ?>
<tr>
<td>
<?php echo _('No se encontraron registros'); ?>
</td>
</tr>
<?php else: ?>
<!-- Rows -->
<?php if ($data->getData()->getDataCount() > 0): ?>
<?php foreach ($data->getData()->getData() as $dataIndex => $dataItem): ?>
<?php if ($dataIndex === 'count'): continue; endif; ?>

View File

@@ -9,7 +9,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_MGM_CATEGORIES; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -46,7 +46,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -12,7 +12,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_MGM_CUSTOMERS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -51,7 +51,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -12,7 +12,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_MGM_CUSTOMFIELDS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -78,7 +78,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -11,7 +11,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_USR_GROUPS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -66,7 +66,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -10,7 +10,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_USR_PROFILES; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -280,7 +280,6 @@
</form>
<?php if (!$isView): ?>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button form="frmProfiles"
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -5,7 +5,7 @@
?>
<div id="box-popup">
<h2 class="center"><?php echo $header; ?></H2>
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Cuenta'); ?></td>

View File

@@ -9,7 +9,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_MGM_TAGS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre'); ?></td>
@@ -31,7 +31,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -5,7 +5,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_MGM_APITOKENS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Usuario'); ?></td>
@@ -59,7 +59,6 @@
<input type="hidden" name="sk" value="">
<input type="hidden" name="isAjax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -10,7 +10,7 @@
data-onsubmit="appMgmt/save"
data-activetab="<?php echo isset($activeTab) ? $activeTab : ''; ?>"
data-nextaction-id="<?php echo \SP\Core\ActionsInterface::ACTION_USR_USERS; ?>">
<table class="fancydata">
<table class="popup-data">
<tbody>
<tr>
<td class="descField"><?php echo _('Nombre') ?></td>
@@ -203,7 +203,6 @@
</form>
<?php if (!$isView): ?>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button form="frmUsers"
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"

View File

@@ -7,7 +7,7 @@
<h2 class="center"><?php echo $header; ?></h2>
<form method="post" name="updUsrPass" id="frmUpdUsrPass" class="form-action" data-onsubmit="appMgmt/save">
<table class="fancydata">
<table class="popup-data">
<tr>
<td class="descField"><?php echo _('Nombre') ?></td>
<td class="valField">
@@ -61,7 +61,6 @@
<input type="hidden" name="sk" value="<?php echo $sk; ?>">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<button form="frmUpdUsrPass"
class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored <?php echo $icons->getIconSave()->getClassButton(); ?>"