diff --git a/internal/server/static/css/style.css b/internal/server/static/css/style.css index f12b187c1284..98f7389c6b44 100644 --- a/internal/server/static/css/style.css +++ b/internal/server/static/css/style.css @@ -4,66 +4,101 @@ body { margin: 0; font-family: 'Trebuchet MS'; background-color: #f8f9fa; + box-sizing: border-box; } -.left-nav { - flex: 0 0 200px; - background-color: #fff; - box-shadow: 4px 0px 12px rgba(0, 0, 0, 0.15); - z-index: 10; - display: flex; - flex-direction: column; - padding: 15px; - align-items: center; +*, *:before, *:after { + box-sizing: inherit; } -.nav-logo { - width: 100%; - margin-bottom: 20px; +#navbar-container { + flex: 0 0 250px; + height: 100%; + position: relative; + z-index: 10; } -.nav-logo img { - max-width: 100%; - height: auto; - display: block; +#main-content-container { + flex: 1; + display: flex; + flex-direction: column; + min-width: 0; + overflow-x: hidden; } -.left-nav ul { +.left-nav { + background-color: #fff; + box-shadow: 4px 0px 12px rgba(0, 0, 0, 0.15); + display: flex; + flex-direction: column; + padding: 15px; + align-items: center; + width: 100%; + height: 100%; + z-index: 3; + + ul { font-family: 'Verdana'; list-style: none; padding: 0; margin: 0; width: 100%; -} -.left-nav ul li { - margin-bottom: 5px; -} + li { + margin-bottom: 5px; -.left-nav ul li a { - display: flex; - align-items: center; - padding: 12px; - text-decoration: none; - color: #333; - border-radius: 0; + a { + display: flex; + align-items: center; + padding: 12px; + text-decoration: none; + color: #333; + border-radius: 0; + + &:hover { + background-color: #e9e9e9; + border-radius: 35px; + } + + &.active { + background-color: #d0d0d0; + font-weight: bold; + border-radius: 35px; + } + } + } + } } -.left-nav ul li a:hover { - background-color: #e9e9e9; - border-radius: 35px; +.second-nav { + flex: 0 0 250px; + background-color: #fff; + box-shadow: 4px 0px 12px rgba(0, 0, 0, 0.15); + z-index: 2; + display: flex; + flex-direction: column; + padding: 15px; + align-items: center; + position: relative; } -.left-nav ul li a.active { - background-color: #d0d0d0; - font-weight: bold; - border-radius: 35px; +.nav-logo { + width: 90%; + margin-bottom: 20px; + + img { + max-width: 100%; + height: auto; + display: block; + } } .main-content-area { flex: 1; display: flex; flex-direction: column; + min-width: 0; + overflow-x: hidden; } .top-bar { @@ -75,15 +110,145 @@ body { border-bottom: 1px solid #eee; } -.top-bar span { - font-weight: bold; - font-size: 1.2em; - font-family: 'Trebuchet MS'; - color: #333; -} - .content { padding: 20px; flex-grow: 1; overflow-y: auto; + overflow-x: hidden; +} + +.tool-button { + display: flex; + align-items: center; + padding: 12px; + text-decoration: none; + color: #333; + background-color: transparent; + border: none; + border-radius: 0; + width: 100%; + text-align: left; + cursor: pointer; + font-family: inherit; + font-size: inherit; + + transition: background-color 0.1s ease-in-out, border-radius 0.1s ease-in-out; + + &:hover { + background-color: #e9e9e9; + border-radius: 35px; + } + + &:focus { + outline: none; + box-shadow: 0 0 0 2px rgba(208, 208, 208, 0.5); + } + + &.active { + background-color: #d0d0d0; + font-weight: bold; + border-radius: 35px; + + &:hover { + background-color: #d0d0d0; + } + } +} + +#secondary-panel-content { + ul { + list-style: none; + padding: 0; + margin: 0; + width: 100%; + } +} + +.tool-details-grid { + display: grid; + grid-template-columns: 1fr 2fr; + gap: 20px; + margin: 0 0 20px 0; + align-items: start; +} + +.tool-info { + display: flex; + flex-direction: column; + gap: 15px; +} + +.tool-params { + background-color: #ffffff; + padding: 15px; + border-radius: 4px; + border: 1px solid #ddd; +} + +.tool-box { + background-color: #ffffff; + padding: 15px; + border-radius: 4px; + border: 1px solid #eee; + + h5 { + color: #4285f4; + margin-top: 0; + font-weight: bold; + } +} + +.param-item { + margin-bottom: 12px; + + label { + display: block; + margin-bottom: 4px; + font-family: inherit; + } + + input[type="text"], + input[type="number"], + select, + textarea { + width: calc(100% - 12px); + padding: 6px; + border: 1px solid #ccc; + border-radius: 4px; + font-family: inherit; + } + + input[type="checkbox"] { + width: auto; + padding: 0; + border: initial; + border-radius: initial; + vertical-align: middle; + margin-right: 4px; + accent-color: #4285f4; + } +} + +.param-label-extras { + font-style: italic; + font-weight: lighter; + color: rgb(125, 125, 125); +} + +.auth-param-input { + background-color: #e0e0e0; + cursor: not-allowed; +} + +.tool-response { + margin: 20px 0 0 0; + + textarea { + width: 100%; + min-height: 150px; + padding: 12px; + border: 1px solid #ddd; + border-radius: 4px; + font-family: monospace; + } } diff --git a/internal/server/static/index.html b/internal/server/static/index.html index a64f16ebbd59..b152f69d6a1f 100644 --- a/internal/server/static/index.html +++ b/internal/server/static/index.html @@ -7,24 +7,18 @@
- + + -