CSS vERP Obejtos texto e imágenes


([N4] SyP) #1

He aplicado el Autoexec del CSS de ERP. Me gusta el nuevo estilo, pero me gustaría poder poner los cuadros objeto texto o imagen con un borde completo. He estado revisando el contenido del css y no he encontrado como.

Gracias.


([N2] Esfero) #2

Hola Syp, no dispongo de la CSS de vERP, pero busca una linea similar a esta:

QTextEdit, QLineEdit, QPlainTextEdit, QSpinBox, QDoubleSpinBox, QColumnView, QComboBox, VBoundFieldEdit, QDateEdit, QDateTimeEdit, QListView, QTimeEdit, VDataCatcherEdit, VDataCatcherEditBrowser{
      ......
      border:0;  ==> Cambialo a los valores que necesites por ejemplo: border:2px solid #2a3882;
      ......
}

([N4] SyP) #3

Muchas gracias por la información. He estado un rato jugando al prueba error y he conseguido ponerle borde a los campos. En esta caso ha sido a todos y me gustaría (no se si es posible) ponerle borde solo a los cuadros de objeto texto y objeto imagen.

Copio el CSS original

/* - - - - - - - - - - - - - - - - CAJA DE EDICION (TEXTO, FECHA, ETC…)- - - - - - - - - - - - - - - - - - - - - */

QLineEdit, QTextEdit {
padding: 5px, 5px, 5px, 5px;
border-style: none;
border-top-width: 0px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CECECE;

color: #333333;
selection-background-color: #A7C6EE;
selection-color: #333333;
}
QLineEdit:hover, QTextEdit:hover {
border-style: none;
border-top-width: 0px;
border-bottom-width: 1px;
border-bottom-style: solid; border-color: #999999;
}
QLineEdit:focus, QTextEdit:focus {
padding: 4px;
border-style: none;
border-top-width: 0px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #A7C6EE;
background-color: #F0F7FF;
}
QLineEdit:disabled, QTextEdit:disabled {
background-color: #CCCCCC;
border-style: none;
border-top-width: 0px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999999;
}
VBoundFieldEdit, QDoubleSpinBox, QSpinBox, QTimeEdit, QNumberSpinBox, VListBox, QDateEdit, QDateTime, QDateTimeEdit, QComboBox {
padding: 5px, 5px, 5px, 5px;
border-style: none;
border-top-width: 0px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CECECE;
color: #333333;
selection-background-color: #B5D5FF;
selection-color: #333333;
background-color: #FFF;
}
VBoundFieldEdit:hover, QDoubleSpinBox:hover, QSpinBox:hover, QTimeEdit:hover, QNumberSpinBox:hover, VListBox:hover, QDateEdit:hover, QDateTime:hover, QDateTimeEdit:hover, QComboBox:hover {
border-bottom-color: #999999;
}
VBoundFieldEdit:focus, QDoubleSpinBox:focus, QSpinBox:focus, QTimeEdit:focus, QNumberSpinBox:focus, VListBox:focus, QDateEdit:focus, QDateTime:focus, QDateTimeEdit:focus {
padding: 4px;
border-bottom-width: 2px;
border-bottom-color: #A7C6EE;
background-color: #F0F7FF;
}
QComboBox:focus {
border-width: 2px;
border-color: #A7C6EE;
background-color: #F0F7FF;
}
VBoundFieldEdit:disabled, QDoubleSpinBox:disabled, QSpinBox:disabled, QTimeEdit:disabled, QNumberSpinBox:disabled, VListBox:disabled, QDateEdit:disabled, QDateTime:disabled, QDateTimeEdit:disabled,
QComboBox:disabled {
background-color: #CCCCCC;
border-bottom-width: 1px;
border-bottom-color: #999999;
}
VBoundFieldEdit::up-button, QDoubleSpinBox::up-button, QSpinBox::up-button, QTimeEdit::up-button, QNumberSpinBox::up-button, VListBox::up-button, QDateEdit::up-button, QDateTime::up-button ,
QDateTimeEdit::up-button, QComboBox::up-button {
border-bottom: 1px solid #FFF;
background-color: #CECECE;
}
VBoundFieldEdit::up-arrow, QDoubleSpinBox::up-arrow, QSpinBox::up-arrow, QTimeEdit::up-arrow, QNumberSpinBox::up-arrow, VListBox::up-arrow, QDateEdit::up-arrow, QDateTime::up-arrow , QDateTimeEdit::up-arrow,
QComboBox::up-arrow {
height: 3px;
width: 5px;
background-color: #FFF;
}
VBoundFieldEdit::up-arrow:hover, QDoubleSpinBox::up-arrow:hover, QSpinBox::up-arrow:hover, QTimeEdit::up-arrow:hover, QNumberSpinBox::up-arrow:hover, VListBox::up-arrow:hover, QDateEdit::up-arrow:hover,
QDateTime::up-arrow:hover , QDateTimeEdit::up-arrow:hover, QComboBox::up-arrow:hover {
background-color: #727272;
}
VBoundFieldEdit::down-button, QDoubleSpinBox::down-button, QSpinBox::down-button, QTimeEdit::down-button, QNumberSpinBox::down-button, VListBox::down-button, QDateEdit::down-button, QDateTime::down-button,
QDateTimeEdit::down-button, QComboBox::down-button {

background-color: #CECECE;
}
VBoundFieldEdit::down-arrow, QDoubleSpinBox::down-arrow, QSpinBox::down-arrow, QTimeEdit::down-arrow, QNumberSpinBox::down-arrow, VListBox::down-arrow, QDateEdit::down-arrow, QDateTime::down-arrow,
QDateTimeEdit::down-arrow, QComboBox::down-arrow {
height: 3px;
width: 5px;
background-color: #FFF;
}
VBoundFieldEdit::down-arrow:hover, QDoubleSpinBox::down-arrow:hover, QSpinBox::down-arrow:hover, QTimeEdit::down-arrow:hover, QNumberSpinBox::down-arrow:hover, VListBox::down-arrow:hover, QDateEdit::down-
arrow:hover, QDateTime::down-arrow:hover, QDateTimeEdit::down-arrow:hover, QComboBox::down-arrow:hover {
background-color: #727272;
}
QComboBox QAbstractItemView {
border: 1px solid #CECECE;
selection-background-color: #CECECE;
selection-color: #000;
}
QDateTime:disabled {
background-color: red;
}
/* OJO: SOLO CON FLECHA HACIA ABAJO */
VBoundFieldEdit::drop-down, QDateTime::drop-down , QDateTimeEdit::drop-down, QComboBox::drop-down {
width: 15px;
background-color: #CECECE;
}