Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from CodeFactor #31

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions application/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ input[type="radio"] {
border-radius: 3px;
color: #fff;
line-height: 1;
padding: 10px 20px 10px 20px;
padding: 10px 20px;
text-align: center;
font-weight: bold;
margin-right: 7px;
Expand Down Expand Up @@ -281,7 +281,7 @@ input[type="radio"] {

.realm {
font-size: 1rem;
margin: 0px auto 0px auto;
margin: 0px auto;
margin-bottom: 5px;
margin-top: 5px;
}
Expand Down
2 changes: 1 addition & 1 deletion application/modules/admin/css/modules.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*************************************/
.files-container {
position: relative;
margin: 0px 2px 15px 2px;
margin: 0px 2px 15px;
}
.dark .files-container {
background-color: rgba(0, 0, 0, 0.2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

gap: var(--spotlight-gap);

margin: 1rem 0 0 0;
margin: 1rem 0 0;

display: -webkit-box;
display: -ms-flexbox;
Expand Down
4 changes: 2 additions & 2 deletions application/modules/sidebox_top/css/sidebox_top.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#top_ranked_content .realm_content .header #column a {
display: block;
width: 100%;
padding: 15px 0 0 0;
padding: 15px 0 0;
height: 45px;
box-sizing: border-box;
font-family: Tahoma, sans-serif;
Expand Down Expand Up @@ -160,7 +160,7 @@
}
@media (max-width:397px){
#top_ranked_content .realm_content .header {
margin: 0 0 17px 0
margin: 0 0 17px
}
}
@media (max-width:767px){
Expand Down
2 changes: 1 addition & 1 deletion application/modules/sidebox_topvoters/css/topvoters.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
height: 119px;
top: 0;
left: 0;
margin: -59.5px auto 0 auto;
margin: -59.5px auto 0;
z-index: 9;
content: '';
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion application/modules/ucp/css/avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
height: 0;
content: '';
display: table;
padding: 100% 0 0 0;
padding: 100% 0 0;
}

.avatars_name {
Expand Down
4 changes: 2 additions & 2 deletions application/themes/admin/assets/css/layouts/modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ html.modern ul.nav-main > li.nav-active > a {

@media (max-width: 1440px) {
html.modern:not(.sidebar-left-collapsed) .header .separator {
margin: 0 15px 0;
margin: 0 15px;
}
}

Expand Down Expand Up @@ -593,7 +593,7 @@ html.modern .sidebar-widget .widget-header h6 {
}

html.modern .notifications {
margin: 0 15px 0 15px;
margin: 0 15px;
}

html.modern .notifications .notification-icon:before {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ html.boxed {

hr.separator {
background-image: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.4), transparent);
margin: 20px -35px 20px;
margin: 20px -35px;
}

a,
Expand All @@ -107,8 +107,8 @@ html.boxed {
a.menu-item {
color: #abb4be;
display: block;
margin: 0 -35px 0 -35px;
padding: 10px 50px 10px 50px;
margin: 0 -35px;
padding: 10px 50px;
text-decoration: none;

&:hover {
Expand Down Expand Up @@ -215,7 +215,7 @@ html.sidebar-light:not(.dark) {
}

.inner-menu-toggle-inside {
margin: -35px -35px 15px -35px;
margin: -35px -35px 15px;

.inner-menu-collapse i {
margin-right: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
border: 0;
border-top: 5px solid $color-primary;
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
margin: -3px 0 0 0;
margin: -3px 0 0;
min-width: 200px;
padding: 5px;
text-align: left;
Expand Down Expand Up @@ -299,7 +299,7 @@
> a {
&.dropdown-toggle {
&:after {
border-color: #444 transparent transparent transparent;
border-color: #444 transparent transparent;
}
}
}
Expand Down Expand Up @@ -374,7 +374,7 @@

&.dropdown-toggle {
&:after {
border-color: #FFF transparent transparent transparent;
border-color: #FFF transparent transparent;
}
}
}
Expand All @@ -384,7 +384,7 @@

&.dropdown-toggle {
&:after {
border-color: #CCC transparent transparent transparent;
border-color: #CCC transparent transparent;
}
}
}
Expand All @@ -404,7 +404,7 @@

&.dropdown-toggle {
&:after {
border-color: #CCC transparent transparent transparent;
border-color: #CCC transparent transparent;
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions application/themes/admin/assets/css/sass/base/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
background-image: linear-gradient(#F6F6F6 60%, #EDEDED);
display: inline-block;
height: 100%;
margin: 0 25px 0;
margin: 0 25px;
width: 1px;
vertical-align: middle;
}
Expand Down Expand Up @@ -299,7 +299,7 @@ html.header-dark {

&.dropdown-toggle {
&:after {
border-color: #444 transparent transparent transparent;
border-color: #444 transparent transparent;
}
}
}
Expand Down Expand Up @@ -360,7 +360,7 @@ html.header-dark {
> a {
&.dropdown-toggle {
&:after {
border-color: #444 transparent transparent transparent;
border-color: #444 transparent transparent;
}
}
}
Expand Down Expand Up @@ -624,7 +624,7 @@ html.header-dark {
> a {
color: #FFF;
&.dropdown-toggle::after {
border-color: #FFF transparent transparent transparent;
border-color: #FFF transparent transparent;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ html.sidebar-right-opened .page-header {

h2 {
font-size: 16px;
padding: 0 15px 0;
padding: 0 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

hr.separator {
background: none;
margin: 20px 10px 20px;
margin: 20px 10px;
}
}

Expand Down
6 changes: 3 additions & 3 deletions application/themes/admin/assets/css/sass/base/_skeleton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ a:active {
}

.content-body {
border-radius: 0 0 5px 0;
border-radius: 0 0 5px;
}

.sidebar-right {
Expand All @@ -438,7 +438,7 @@ a:active {
}

.header {
border-radius: 5px 0 0 0;
border-radius: 5px 0 0;
}

.content-body {
Expand All @@ -449,7 +449,7 @@ a:active {
bottom: 20px;
position: absolute;
top: 25px;
border-radius: 0 5px 5px 5px;
border-radius: 0 5px 5px;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ html.has-tab-navigation {
// -----------------------------------------------------------------------------
html.has-tab-navigation {
.content-body {
padding: 25px 25px;
padding: 25px;
background-color: #eee;
border-radius: 0 7px 7px 7px;
border-radius: 0 7px 7px;
transition: ease padding 300ms;

/* Only for desktop */
Expand Down Expand Up @@ -88,7 +88,7 @@ html.has-tab-navigation {
background-color: transparent;
border: none;
box-shadow: none;
padding: 0 0 10px 0;
padding: 0 0 10px;
.breadcrumbs {
a,
span {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
&.accordion-lg {
.card-header {
a {
padding: 15px 15px;
padding: 15px;
font-size: 1em;
font-weight: 600;
}
Expand Down
5 changes: 2 additions & 3 deletions application/themes/admin/assets/css/sass/gui/_carousels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
margin-top: -45px;
width: auto;
button[class*="owl-"], button[class*="owl-"]:hover, button[class*="owl-"]:active {
font-size: 18px;
background: transparent !important;
width: 18px;
font-size: 18px;
Expand Down Expand Up @@ -139,7 +138,7 @@
&.nav-bottom-inside {
.owl-nav {
position: relative;
margin: -4.3rem 0 0 0;
margin: -4.3rem 0 0;
padding: 0;
width: auto;
button.owl-prev, button.owl-next {
Expand Down Expand Up @@ -252,7 +251,7 @@
.carousel-areas {
background: transparent url(../img/patterns/stripes.png) repeat 0 0;
margin-bottom: -10px;
padding: 10px 10px 0 10px;
padding: 10px 10px 0;
border-radius: 6px 6px 0 0;
.owl-carousel {
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ html:not(.sidebar-light) {
}

&:first-child {
border-radius: 4px 0 0 0;
border-radius: 4px 0 0;
}

&:last-child {
Expand Down
8 changes: 4 additions & 4 deletions application/themes/admin/assets/css/sass/gui/_dividers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ hr {
border: 0;
height: 1px;
background-image: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.20), rgba(0,0,0,0));
margin: 22px 0 22px 0;
margin: 22px 0;
}

hr.short {
margin: 11px 0 11px 0;
margin: 11px 0;
}

hr.tall {
margin: 44px 0 44px 0;
margin: 44px 0;
}

hr.taller {
margin: 66px 0 66px 0;
margin: 66px 0;
}

hr.light {
Expand Down
10 changes: 5 additions & 5 deletions application/themes/admin/assets/css/sass/gui/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ html.dark {
&:last-child,
&:last-of-type {
.form-control {
border-radius: 0 0 4px 0;
border-radius: 0 0 4px;
}
}

Expand Down Expand Up @@ -495,7 +495,7 @@ input[type="checkbox"] {
position: absolute;
top: 50%;
left: 3px;
margin: -6px 0 0 0;
margin: -6px 0 0;
z-index: 2;
cursor: pointer;

Expand Down Expand Up @@ -632,7 +632,7 @@ html.dark {
position: absolute;
top: 50%;
left: 3px;
margin: -6px 0 0 0;
margin: -6px 0 0;
z-index: 2;
cursor: pointer;

Expand Down Expand Up @@ -757,8 +757,8 @@ html.dark {
.validation-message ul {
display: none;
list-style: none;
margin: -20px -20px 30px -20px;
padding: 20px 20px 10px 20px;
margin: -20px -20px 30px;
padding: 20px 20px 10px;
border-bottom: 1px solid #FFCBCB;
background: #FFEFEF;

Expand Down
4 changes: 2 additions & 2 deletions application/themes/admin/assets/css/sass/gui/_gmaps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@media only screen and (max-width: 767px) {

#gmap {
margin: -40px -15px 0 -15px;
margin: -40px -15px 0;
}

html.mobile-device {
Expand Down Expand Up @@ -36,7 +36,7 @@
}

p {
margin: 0 0 2px 0;
margin: 0 0 2px;
padding: 3px 55px 3px 0;
overflow: hidden;
white-space: nowrap;
Expand Down
2 changes: 1 addition & 1 deletion application/themes/admin/assets/css/sass/gui/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ html.dark {

/* Filters Sidebar Wrapper */
.filters-sidebar-wrapper {
padding: 30px 15px 30px;
padding: 30px 15px;
box-shadow: 0px 0px 37px -36px rgba(0, 0, 0, 0.4);
a {
color: inherit;
Expand Down
Loading