Skip to content

Commit

Permalink
Cleanup bootstrap css
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Jul 20, 2021
1 parent 146f76a commit f579554
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 87 deletions.
28 changes: 5 additions & 23 deletions dev/Styles/User/Contacts.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

@contacts-popup-left-width: 220px;
@contacts-popup-left-width: 25%;

.b-contacts-content {
.RL-PopupsContacts {

.control-group {
.control-label {
Expand All @@ -10,11 +10,8 @@
}
}

&.modal {
position: absolute;
right: 0;
.modal {
bottom: 0;
left: 0;
width: auto;
min-width: 550px;
max-width: 900px;
Expand All @@ -36,8 +33,8 @@
border-bottom: 1px solid rgba(128,128,128,0.4);

.e-search {
margin-top: 7px;
width: @contacts-popup-left-width - 20;
margin: 7px 0 0;
width: calc(100% - 20px);
}
}

Expand Down Expand Up @@ -268,18 +265,3 @@
}
}
}


@media screen and (max-width: 700px) {
.b-contacts-content {
.b-list-content, .b-list-toolbar, .b-list-footer-toolbar {
width: 170px;
}
.b-list-toolbar .e-search {
width: 150px;
}
.b-view-content-toolbar, .b-view-content {
left: 170px;
}
}
}
8 changes: 4 additions & 4 deletions dev/Styles/_BootstrapFix.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ label.inline, span.inline {
line-height: @baseLineHeight * 2;
color: @grayDark;
border: 0;
border-bottom: 1px solid #e5e5e5;
border-bottom: 1px solid @dropdownDividerTop;

small {
font-size: @baseLineHeight * .75;
Expand Down Expand Up @@ -40,15 +40,15 @@ label.inline, span.inline {

.alert a {
text-decoration: underline;
color: #c09853;
color: @warningText;
}

.alert.alert-info a {
color: #3a87ad;
color: @infoText;
}

.alert.alert-error a {
color: #b94a48;
color: @errorText;
}

/* mobile and tablet */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="modal fade b-contacts-content" data-bind="modal: modalVisibility">
<div class="modal fade">
<div class="modal-header b-header-toolbar g-ui-user-select-none">

<button type="button" class="close" data-bind="command: cancelCommand">×</button>
Expand Down Expand Up @@ -48,7 +48,7 @@
</div>
<div class="modal-body">
<div class="b-list-toolbar">
<input type="search" class="span3 e-search" placeholder="Search" autocorrect="off" autocapitalize="off" data-i18n="[placeholder]GLOBAL/SEARCH" data-bind="value: search" />
<input type="search" class="e-search" placeholder="Search" autocorrect="off" autocapitalize="off" data-i18n="[placeholder]GLOBAL/SEARCH" data-bind="value: search" />
</div>
<div class="b-list-content g-ui-user-select-none" data-bind="css: {'hideContactListCheckbox': !useCheckboxesInList()}">
<div class="content">
Expand Down
25 changes: 0 additions & 25 deletions vendors/bootstrap/less/button-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
.btn-group > .btn-small {
font-size: 12px;
}
.btn-group > .btn-large {
font-size: 16px;
}

// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
Expand All @@ -61,17 +58,6 @@
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}

// On hover/focus/active, bring the proper btn to front
.btn-group > .btn:hover,
Expand All @@ -84,17 +70,6 @@
// Split button dropdowns
// ----------------------

// Give the line between buttons some depth
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}
.btn-group > .btn-large + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
}

.btn-group.open {

// The clickable button for toggling the menu
Expand Down
9 changes: 0 additions & 9 deletions vendors/bootstrap/less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,13 @@
line-height: normal;
border-radius: 5px;
}
.btn-large [class^="icon-"] {
margin-top: 2px;
}

// Small
.btn-small {
padding: 3px 9px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
.btn-small [class^="icon-"] {
margin-top: 0;
}

// Block button
.btn-block {
Expand All @@ -87,9 +81,6 @@
padding-right: 0;
box-sizing: border-box;
}
.btn-block + .btn-block {
margin-top: 5px;
}


// Alternate buttons
Expand Down
8 changes: 0 additions & 8 deletions vendors/bootstrap/less/dropdowns.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,3 @@
background-color: transparent;
cursor: default;
}

// Open state for the dropdown
// ---------------------------
.open {
& > .dropdown-menu {
display: block;
}
}
6 changes: 0 additions & 6 deletions vendors/bootstrap/less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ legend {
color: @grayDark;
border: 0;
border-bottom: 1px solid #e5e5e5;

// Small
small {
font-size: @baseLineHeight * .75;
color: @grayLight;
}
}

// Identify controls by their labels
Expand Down
3 changes: 0 additions & 3 deletions vendors/bootstrap/less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
vertical-align: top;
}

// Set the container width
.container { .span(@gridColumns); }

// generate .spanX
.spanX (@gridColumns);
}
Expand Down
4 changes: 3 additions & 1 deletion vendors/bootstrap/less/modals.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Base modal
.modal {
position: relative;
position: absolute;
z-index: @zindexModal;
overflow: hidden;
width: calc(100% - 20px);
Expand All @@ -17,6 +17,8 @@
box-shadow: 0 5px 80px rgba(0,0,0,0.3);
background-clip: padding-box;
top: 0;
left: 0;
right: 0;
}

.modal-header {
Expand Down
6 changes: 0 additions & 6 deletions vendors/bootstrap/less/tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
background-color: @tableBackground;
border-collapse: collapse;
border-spacing: 0;
}

// BASELINE STYLES
// ---------------

.table {
width: 100%;
margin-bottom: @baseLineHeight;
// Cells
Expand Down

0 comments on commit f579554

Please sign in to comment.