Skip to content

Commit

Permalink
Assorted style cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 20, 2024
1 parent e73bf11 commit 857e2d1
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 63 deletions.
10 changes: 0 additions & 10 deletions components/style/QtDesignerForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ div.qt-designer-form textarea {
height: 100%;
}

div.qt-designer-form div.text-input-wrapper,
div.qt-designer-form div.text-input-wrapper > pre {
min-height: 2em;
}

div.qt-designer-form div.text-input-wrapper-multiline,
div.qt-designer-form div.text-input-wrapper-multiline > pre {
height: 100%;
}

div.qt-designer-form div.TextInput,
div.qt-designer-form div.TextInput > pre {
min-height: 2em;
}

div.qt-designer-form label > input {
margin-right: 0.25em;
}
Expand Down
1 change: 0 additions & 1 deletion components/style/SearchBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ div.searchbox-field {
flex: 1 1 auto;
}


button.searchbox-filter-button {
flex: 0 0 auto;
border-left-width: 0;
Expand Down
5 changes: 2 additions & 3 deletions components/widgets/style/SearchWidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ div.search-widget-container {

div.search-widget-container > input {
width: 100%;
height: 100%!important;
}

div.search-widget-container > div.spinner,
div.search-widget-container > span.icon-clear {
position: absolute;
width: calc(2em - 2px);
height: calc(2em - 2px);
width: 2em;
height: 2em;
right: 0;
top: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/GeometryDigitizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class GeometryDigitizer extends React.Component {
</div>
<div className="redlining-group">
<div>{LocaleUtils.tr("geomdigitizer.applink")}</div>
<div className="geometry-digitizer-applink controlgroup">
<div className="controlgroup">
<select onChange={ev => this.setState({geomLink: ev.target.value})} value={this.state.geomLink}>
<option value="">{LocaleUtils.tr("geomdigitizer.chooselink")}</option>
{(this.props.theme.pluginData?.geometryLinks || []).map(entry => (
Expand All @@ -263,7 +263,7 @@ class GeometryDigitizer extends React.Component {
{Object.entries(geomLinkData.params || {}).map(([key, value]) => (
<input key={key} name={key} type="hidden" value={value} />
))}
<button disabled={!geomLinkData.url || !haveFeatures} type="submit">{LocaleUtils.tr("geomdigitizer.send")}</button>
<button className="button" disabled={!geomLinkData.url || !haveFeatures} type="submit">{LocaleUtils.tr("geomdigitizer.send")}</button>
</form>
</div>
</div>
Expand Down
8 changes: 1 addition & 7 deletions plugins/style/AttributeTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,13 @@ div.dock-window > div.resizeable-window-body > div.attribtable-body {
div.attribtable-toolbar {
display: flex;
align-items: center;
padding: 0.25em;
flex: 0 0 auto;
margin-bottom: 0.125em;
}

div.attribtable-toolbar > * {
margin: 0.125em;
}

div.attribtable-toolbar > select {
border: 1px solid var(--border-color);
height: 2em;
}

div.attribtable-contents {
flex: 1 1 auto;
background-color: var(--list-bg-color);
Expand Down
21 changes: 7 additions & 14 deletions plugins/style/Bookmark.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
.bookmark-body {
padding: 0.5em;
height: 100%;
overflow-y: hidden;
display: flex;
flex-direction: column;
}

.bookmark-body > h4 {
flex: 0 0 auto;
}

div.bookmark-create {
display: flex;
flex: 0 0 auto;
/* titlebar: 2.5em */
max-height: calc(100vh - 2.5em - var(--topbar-height) - var(--bottombar-height)); /* viewport - sidebar_titlebar - topbar - bottombar*/
max-height: calc(var(--vh, 1vh) * 100 - 2.5em - var(--topbar-height) - var(--bottombar-height)); /* viewport - sidebar_titlebar - topbar - bottombar*/
}

div.bookmark-create > input {
flex: 1 1 auto;
border-radius: 0;
width: 100%;
}

div.bookmark-actions {
Expand All @@ -28,13 +19,15 @@ span.bookmark-actions-spacer {
flex: 1 1 auto;
}

span.bookmark-actions-buttonbox > button:not(:disabled) > span.icon-trash {
span.bookmark-actions > button:not(:disabled) > span.icon-trash {
color: red;
}

div.bookmark-list {
border: 1px solid var(--border-color);
background-color: var(--list-bg-color);
flex: 1 1 auto;
overflow-y: auto;
}

div.bookmark-list-item {
Expand Down
15 changes: 0 additions & 15 deletions plugins/style/GeometryDigitizer.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
div.geometry-digitizer-applink > form {
display: inline;
}

div.geometry-digitizer-applink > select,
div.geometry-digitizer-applink > form > button {
height: 2em;
padding: 0.25em;
border: 1px solid var(--border-color);
}

div.geometry-digitizer-applink > form > button:disabled {
color: gray;
}

div.geomdigitizer-output-window-body {
width: 100%;
height: 100%;
Expand Down
5 changes: 1 addition & 4 deletions plugins/style/Portal.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ img.portal-logo {
}

input.portal-search-field {
flex: 1 0 auto;
height: 2em;
flex: 1 1 auto;
max-width: 70ch;
background-color: var(--input-bg-color);
border: 1px solid var(--border-color);
}

span.portal-topbar-spacer {
Expand Down
2 changes: 1 addition & 1 deletion plugins/style/Routing.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ div.routing-body {
}

div.routing-buttonbar {
flex: 0 0 auto;
margin-bottom: -1px;
}

div.routing-frame {
Expand Down
6 changes: 0 additions & 6 deletions plugins/style/TopBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#TopBar img.logo {
width: auto;
height: 3.0em;
flex: 0 0 auto;
vertical-align: middle;
}

Expand All @@ -30,13 +29,8 @@
align-items: center;
}

#TopBar div.AppMenu {
flex: 0 0 auto;
}

#TopBar #FullScreenSwitcher {
height: 3.5em;
flex: 0 0 auto;
}

#TopBar.fullscreen {
Expand Down

0 comments on commit 857e2d1

Please sign in to comment.