Simplify CSS by removing complex label styles, keep basic layout only
This commit is contained in:
parent
371eaada97
commit
c92a8875b8
|
|
@ -60,126 +60,7 @@
|
||||||
.o_datepicker {
|
.o_datepicker {
|
||||||
.o_datepicker_button {
|
.o_datepicker_button {
|
||||||
&.o_hijri_datepicker_button {
|
&.o_hijri_datepicker_button {
|
||||||
position: absolute;
|
top: 30px;
|
||||||
right: 0;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hijri field container
|
|
||||||
.o_hijri_field_container {
|
|
||||||
margin-top: 8px;
|
|
||||||
|
|
||||||
.o_hijri_field_row {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.o_hijri_label_container {
|
|
||||||
min-width: 120px;
|
|
||||||
padding-right: 8px;
|
|
||||||
text-align: right;
|
|
||||||
|
|
||||||
.o_hijri_label {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #495057;
|
|
||||||
margin-bottom: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.o_hijri_input_container {
|
|
||||||
flex: 1;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.o_hijri {
|
|
||||||
width: 100%;
|
|
||||||
padding-right: 30px; // مساحة للزرار
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Form view specific styles
|
|
||||||
.o_form_view {
|
|
||||||
.o_datepicker {
|
|
||||||
.o_hijri_field_container {
|
|
||||||
.o_hijri_field_row {
|
|
||||||
.o_hijri_label_container {
|
|
||||||
min-width: 140px; // عرض أكبر في الفورم
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Readonly mode styles for hijri field
|
|
||||||
.o_hijri_readonly_container {
|
|
||||||
margin-top: 8px;
|
|
||||||
|
|
||||||
.o_hijri_readonly_row {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.o_hijri_readonly_label {
|
|
||||||
min-width: 120px;
|
|
||||||
padding-right: 8px;
|
|
||||||
text-align: right;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #495057;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.o_hijri_readonly_value {
|
|
||||||
flex: 1;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Form view readonly specific styles
|
|
||||||
.o_form_view {
|
|
||||||
.o_hijri_readonly_container {
|
|
||||||
.o_hijri_readonly_row {
|
|
||||||
.o_hijri_readonly_label {
|
|
||||||
min-width: 140px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Responsive adjustments
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.o_datepicker {
|
|
||||||
.o_hijri_field_container {
|
|
||||||
.o_hijri_field_row {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: stretch;
|
|
||||||
|
|
||||||
.o_hijri_label_container {
|
|
||||||
min-width: auto;
|
|
||||||
text-align: right;
|
|
||||||
padding-right: 0;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.o_hijri_readonly_container {
|
|
||||||
.o_hijri_readonly_row {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: stretch;
|
|
||||||
|
|
||||||
.o_hijri_readonly_label {
|
|
||||||
min-width: auto;
|
|
||||||
text-align: right;
|
|
||||||
padding-right: 0;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue