Skip to content

Commit

Permalink
Fixed some visual bugs and made a few visual improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarigs committed Aug 7, 2024
1 parent 31d4343 commit cf82786
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 100 deletions.
40 changes: 10 additions & 30 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,43 +58,23 @@
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
}
.main-content {
flex-grow: 1;
overflow-y: auto;
transition: margin-left 0.3s;
margin-left: 300px;
padding: 20px;
transition: margin-left 0.4s;
margin-left: 350px;
margin-right: 100px;
padding: 0px;
width: calc(100% - 300px);
box-sizing: border-box;
/* Custom scrollbar styles */
scrollbar-width: thin;
scrollbar-color: #4286f4 #fafaff;
}
/* Adjust main content when sidebar is collapsed */
.sidebar-collapsed .main-content {
margin-left: 50px;
width: calc(100% - 50px);
}
/* Webkit-specific scrollbar styles for main content */
.main-content::-webkit-scrollbar {
width: 8px;
}
.main-content::-webkit-scrollbar-track {
background: #2a2a2e;
}
.main-content::-webkit-scrollbar-thumb {
background-color: #4285f4;
border-radius: 4px;
margin-left: 150px;
width: calc(100% - 150px);
}
/* Responsive design for smaller screens */
Expand All @@ -107,15 +87,15 @@
/* Global scrollbar styles */
::-webkit-scrollbar {
width: 8px;
width: 10px;
}
::-webkit-scrollbar-track {
background: #2a2a2e;
background: #2f2f2f;
}
::-webkit-scrollbar-thumb {
background-color: #4285f4;
border-radius: 4px;
background-color: #4286f4ca;
border-radius: 6px;
}
</style>
62 changes: 34 additions & 28 deletions src/components/IniFileViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@
/* Styles for control buttons */
.controls {
margin-top: -10px;
margin-bottom: 20px;
text-align: center;
}
Expand All @@ -333,16 +334,18 @@
font-style: italic;
}
/* Layout for INI content */
/* Container holding INI content */
.ini-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
/* Outer box surrounding INI sections
and their key-value pairs */
.ini-section {
width: calc(50% - 10px);
margin-bottom: 20px;
margin-left: 10px;
}
/* Responsive layout for smaller screens */
Expand All @@ -353,51 +356,53 @@
}
}
/* Styles for section headers and content */
/* Header bar displaying INI section name */
.section-header {
text-align: center;
background-color: rgba(150, 146, 146, 0.518);
padding: 10px;
background-color: #4286f465;
padding: 5px;
margin: 0;
}
/* Container with key-value pairs */
.section-content {
padding: 15px;
padding: 20px;
}
/* Styles for individual INI items */
.ini-item {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 10px;
.key {
text-align: center;
padding-left: 120px;
}
.key-colon {
display: flex;
justify-content: flex-end;
align-items: center;
width: 50%;
padding-right: 10px;
padding-right: 5px;
}
.key {
text-align: right;
/* Styles for individual INI items */
.ini-item {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 5px;
}
.colon {
margin-left: 5px;
margin-left: 1px;
}
.value {
width: 50%;
padding-left: 10px;
padding-left: 5px;
}
/* Styles for input elements */
input {
width: 15%;
padding: 2px 5px;
width: 35%;
padding: 3px 6px;
}
input[type="checkbox"] {
Expand All @@ -406,16 +411,15 @@
}
input[type="color"] {
width: 50px;
height: 25px;
width: 40px;
height: 20px;
padding: 0;
border: none;
}
.color-preview {
width: 50px;
height: 25px;
border: 1px solid #ccc;
width: 40px;
height: 20px;
}
/* Button styles */
Expand All @@ -427,28 +431,30 @@
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
font-weight: 400;
}
button:hover {
background-color: #3367d6;
background-color: #2851ab;
}
h1 {
text-align: center;
margin-top: 0px;
margin-bottom: 20px;
}
/* Textarea styles */
textarea {
width: 50%;
height: 60px;
width: 35%;
min-height: 80px;
max-height: 100px;
resize: none;
}
select {
width: 50%;
width: auto;
padding: 2px 5px;
}
Expand Down
36 changes: 4 additions & 32 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,51 +346,23 @@
@import "vue-sidebar-menu/src/scss/vue-sidebar-menu.scss";
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600');
// Global styles
body, html {
body {
margin: 0;
padding: 0;
}
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 18px;
background-color: #2f2f2fcd;
color: #fff7f7;
}
// Sidebar overlay styles
.sidebar-overlay {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #000;
opacity: 0.5;
z-index: 900;
color: #f7fbff;
}
.container {
max-width: 900px;
width: auto;
}
// Sidebar menu styles
.v-sidebar-menu {
height: 100%;
position: fixed;
top: 0;
left: 0;
&.vsm_collapsed {
width: 50px !important; // Adjust to match App.vue
}
}
// Responsive styles
@media (max-width: 768px) {
.v-sidebar-menu:not(.vsm_collapsed) {
width: 50px !important;
width: auto;
}
}
</style>
14 changes: 4 additions & 10 deletions src/pages/Help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,12 @@
color: #e6e6e6;
font-family: Arial, sans-serif;
line-height: 1.6;
overflow-y: auto;
height: 100%;
scrollbar-width: thin;
scrollbar-color: #4285f4 #2a2a2e;
}
/* Spacer at the bottom of the content */
.content-spacer {
height: 60px;
height: 50px;
}
/* Heading styles */
Expand Down Expand Up @@ -296,7 +293,6 @@ pre {
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
overflow-x: auto;
font-family: monospace;
white-space: pre-wrap;
word-wrap: break-word;
Expand Down Expand Up @@ -363,20 +359,18 @@ a:hover {
}
.help-page {
height: 100%;
overflow: hidden;
overflow: visible;
}
.help-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
padding: 0px;
color: #e6e6e6;
font-family: Arial, sans-serif;
line-height: 1.6;
overflow-y: auto;
height: 100%;
scrollbar-width: thin;
scrollbar-color: #4285f4 #2a2a2e;
}
/* Webkit-specific scrollbar styles */
Expand Down

0 comments on commit cf82786

Please sign in to comment.