Skip to content
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
107 changes: 92 additions & 15 deletions admin/css/debug-toolbar/toolbar.scss
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
/* CodeIgniter 4 - Debug bar
============================================================================ */

/* Forum: https://forum.codeigniter.com
/*! CodeIgniter 4 - Debug bar
* ============================================================================
* Forum: https://forum.codeigniter.com
* Github: https://github.com/codeigniter4/codeigniter4
* Slack: https://codeigniterchat.slack.com
* Website: https://codeigniter.com
*/


// IMPORTS
// ========================================================================== */

Expand DownExpand Up@@ -36,15 +34,18 @@
// Content
clear: both;
text-align: center;

a svg {
margin: 8px;
max-width: 20px;
max-height: 20px;
}

&.fixed-top {
bottom: auto;
top: 0;
}

.debug-bar-ndisplay {
display: none;
}
Expand DownExpand Up@@ -85,80 +86,121 @@
right: 30px;
text-align: left;
top: 0;

svg {
width: 16px;
margin-right: 5px;
}
}

h2 {
font-size: $base-size;
margin: 0;
padding: 5px 0 10px 0;

span {
font-size: 13px;
}
}

h3 {
font-size: $base-size - 4;
font-weight: 200;
margin: 0 0 0 10px;
padding: 0;
text-transform: uppercase;
}

p {
font-size: $base-size - 4;
margin: 0 0 0 15px;
padding: 0;
}

a {
text-decoration: none;

&:hover {
text-decoration: underline;
}
}

button {
border: 1px solid;
@include border-radius(4px);
cursor: pointer;
line-height: 15px;

&:hover {
text-decoration: underline;
}
}

table {
border-collapse: collapse;
font-size: $base-size - 2;
line-height: normal;
margin: 5px 10px 15px 10px; // Tables indentation
width: calc(100% - 10px); // Make sure it still fits the container, even with the margins

strong {
font-weight: 500;
}

th {
display: table-cell;
font-weight: 600;
padding-bottom: 0.7em;
text-align: left;
}

tr {
border: none;
}

td {
border: none;
display: table-cell;
margin: 0;
text-align: left;

&:first-child {
max-width: 20%;

&.narrow {
width: 7em;
}
}
}
}

td[data-debugbar-route] {
form {
display: none;
}

&:hover {
form {
display: block;
}

&>div {
display: none;
}
}

input[type=text] {
padding: 2px;
}
}

// The toolbar
.toolbar {
display: block;
display: flex;
overflow: hidden;
overflow-y: auto;
padding: 0 12px 0 12px; /* give room for OS X scrollbar */
padding: 0 12px 0 12px;
/* give room for OS X scrollbar */
white-space: nowrap;
z-index: 10000;
}
Expand All@@ -167,6 +209,7 @@
&.fixed-top {
bottom: auto;
top: 0;

.tab {
bottom: auto;
top: 36px;
Expand All@@ -177,8 +220,11 @@
#toolbar-position,
#toolbar-theme {
a {
float: left;
// float: left;
padding: 0 6px;
display: inline-flex;
vertical-align: top;

&:hover {
text-decoration: none;
}
Expand All@@ -200,26 +246,30 @@

// The toolbar menus
.ci-label {
display: inline-block;
display: inline-flex;
font-size: $base-size - 2;
vertical-align: baseline;
// vertical-align: baseline;

&:hover {
cursor: pointer;
}

a {
color: inherit;
display: block;
display: flex;
letter-spacing: normal;
padding: 0 10px;
text-decoration: none;
align-items: center;
}

// The toolbar icons
img {
clear: left;
display: inline-block;
float: left;
// clear: left;
// display: inline-block;
// float: left;
margin: 6px 3px 6px 0;
width: 16px !important;
}

// The toolbar notification badges
Expand DownExpand Up@@ -255,25 +305,30 @@
.timeline {
margin-left: 0;
width: 100%;

th {
border-left: 1px solid;
font-size: $base-size - 4;
font-weight: 200;
padding: 5px 5px 10px 5px;
position: relative;
text-align: left;

&:first-child {
border-left: 0;
}
}

td {
border-left: 1px solid;
padding: 5px;
position: relative;

&:first-child {
border-left: 0;
}
}

.timer {
@include border-radius(4px);
display: inline-block;
Expand DownExpand Up@@ -323,6 +378,14 @@
// ========================================================================== */

@media screen and (max-width: 1024px) {
#debug-bar {
.ci-label {
img {
margin: unset
}
}
}

.hide-sm {
display: none !important;
}
Expand All@@ -343,6 +406,11 @@
// If we force the "Dark" theme
#toolbarContainer.dark {
@import '_theme-dark';

td[data-debugbar-route] input[type=text] {
background: #000;
color: #fff;
}
}

// If we force the "Light" theme
Expand All@@ -357,30 +425,39 @@
.debug-bar-width30 {
width: 30%;
}

.debug-bar-width10 {
width: 10%;
}

.debug-bar-width70p {
width: 70px;
}

.debug-bar-width140p {
width: 140px;
}

.debug-bar-width20e {
width: 20em;
}

.debug-bar-width6r {
width: 6rem;
}

.debug-bar-ndisplay {
display: none;
}

.debug-bar-alignRight {
text-align: right;
}

.debug-bar-alignLeft {
text-align: left;
}

.debug-bar-noverflow {
overflow: hidden;
}
}
Loading