Skip to content

Commit 346b5fa

Browse files
authored
Merge pull request #185 from simonredfern/develop
remove mouse over effects
2 parents 0e7a3c3 + 13da0eb commit 346b5fa

12 files changed

Lines changed: 5 additions & 83 deletions

‎src/components/Content.vue‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -434,24 +434,13 @@ span {
434434
text-decoration: none;
435435
}
436436
437-
.tag-link:hover {
438-
background-color: var(--el-color-primary);
439-
color: white;
440-
border-color: var(--el-color-primary);
441-
}
442-
443437
.tag-link-all {
444438
background-color: var(--el-color-success);
445439
border-color: var(--el-color-success-light-5);
446440
color: white;
447441
font-weight: 600;
448442
}
449443
450-
.tag-link-all:hover {
451-
background-color: #85ce61;
452-
border-color: #85ce61;
453-
}
454-
455444
.tag-link-active {
456445
background-color: var(--el-color-primary);
457446
color: white;
@@ -603,12 +592,6 @@ div {
603592
white-space: nowrap;
604593
}
605594
606-
.pager-router-link:hover,
607-
.pager-left:hover,
608-
.pager-right:hover {
609-
color: v-bind(summaryPagerLinksColor);
610-
}
611-
612595
.favorite {
613596
cursor: pointer;
614597
line-height: 1;

‎src/components/JsonSchemaViewer.vue‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,6 @@ const jsonElements = computed(() => {
285285
transition: all 0.2s ease;
286286
}
287287
288-
.ref-link:hover {
289-
color: #84c5ff;
290-
text-decoration-style: solid;
291-
background-color: rgba(97, 175, 239, 0.1);
292-
}
293-
294288
/* Custom scrollbar */
295289
.schema-container::-webkit-scrollbar {
296290
width: 8px;

‎src/components/Menu.vue‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ a {
134134
text-decoration: none;
135135
}
136136
137-
a:hover {
138-
color: v-bind(searchLinksColor);
139-
}
140-
141137
.host {
142138
font-size: 14px;
143139
font-family: 'Roboto';
@@ -181,11 +177,6 @@ a:hover {
181177
transition: color 0.2s ease;
182178
}
183179
184-
.endpoint-tags :deep(.tag-link:hover) {
185-
color: #66b1ff;
186-
text-decoration: underline;
187-
}
188-
189180
.api-host-label {
190181
font-size: 14px;
191182
font-family: 'Roboto';

‎src/components/Preview.vue‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,9 +1061,6 @@ li:last-child {
10611061
color: inherit;
10621062
text-decoration: underline;
10631063
}
1064-
#resolved-request-url:hover {
1065-
color: var(--el-color-primary);
1066-
}
10671064
.divider {
10681065
border-top: 1px var(--obp-panel-dark-raised) solid;
10691066
margin-left: -25px;

‎src/views/AboutView.vue‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,6 @@ const clearCacheStorage = () => {
154154
text-decoration: none;
155155
}
156156
157-
.about-table a:hover {
158-
color: #66b1ff;
159-
text-decoration: underline;
160-
}
161-
162157
.clear-cache-button {
163158
padding: 6px 16px;
164159
background-color: #32b9ce;

‎src/views/CollectionView.vue‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ onMounted(async () => {
172172
<el-collapse-item v-for="key in sortedKeys" :title="key" :key="key" :name="key">
173173
<div class="el-tabs--right">
174174
<div v-for="(value, k) of sortLinks(groups[key])" :key="value" class="api-router-tab" @click="setActive">
175-
<RouterLink active-class="active-api-router-link" class="api-router-link" :id="value"
175+
<RouterLink active-class="active-api-router-link" class="api-router-link" :id="value" draggable="false"
176176
:to="{ name: 'collection-api', params: { id: collectionId }, query: { operationid: value } }">{{ k }}</RouterLink>
177177
</div>
178178
</div>
@@ -281,11 +281,9 @@ onMounted(async () => {
281281
.api-router-tab {
282282
border-left: 2px solid var(--el-menu-border-color);
283283
}
284-
.api-router-tab:hover,
285284
.active-api-router-tab {
286285
border-left: 2px solid v-bind(searchLinksColor);
287286
}
288-
.api-router-tab:hover .api-router-link,
289287
.active-api-router-link {
290288
color: v-bind(searchLinksColor);
291289
}

‎src/views/GlossaryView.vue‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const safeDescriptions = computed(
7676
<el-backtop :right="100" :bottom="100" />
7777
<div v-for="(value, key) of glossary" :key="value">
7878
<span>
79-
<a v-bind:href="`#${value.title}`" :id="value.title">
79+
<a v-bind:href="`#${value.title}`" :id="value.title" draggable="false">
8080
{{ value.title }}
8181
</a>
8282
</span>
@@ -156,24 +156,19 @@ span > a {
156156
text-decoration: none;
157157
color: var(--obp-text-strong);
158158
display: block;
159+
-webkit-user-drag: none;
159160
margin-top: 30px;
160161
padding-top: 10px;
161162
}
162163
span:first-child > a {
163164
margin-top: 0;
164165
}
166+
/* No hover effects on this page: they get in the way of selecting text to copy. */
165167
.content :deep(a) {
166168
text-decoration: underline;
167169
font-family: 'Roboto';
168170
font-size: 14px;
169-
border-radius: 3px;
170-
padding: 1px;
171-
}
172-
.content :deep(a):hover {
173-
background-color: #a4b2ce;
174-
}
175-
:global(html.dark) .content :deep(a):hover {
176-
background-color: #4c4d4f;
171+
-webkit-user-drag: none;
177172
}
178173
179174
/* Make Scala code blocks readable */

‎src/views/HelpView.vue‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ const hasContent = computed(() => helpContent.value !== null)
219219
padding: 1px;
220220
}
221221
222-
.content :deep(a):hover {
223-
background-color: var(--el-color-primary-light-9);
224-
color: #66b1ff;
225-
}
226-
227222
.content :deep(blockquote) {
228223
border-left: 4px solid var(--el-border-color);
229224
padding-left: 16px;

‎src/views/MessageDocsJsonSchemaListView.vue‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ h1 {
102102
display: block;
103103
}
104104
105-
.message-doc-link:hover {
106-
background-color: var(--el-color-primary-light-9);
107-
color: var(--el-color-primary-dark-2);
108-
}
109-
110105
.empty-message {
111106
color: var(--el-text-color-secondary);
112107
font-style: italic;

‎src/views/MessageDocsJsonSchemaView.vue‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,6 @@ div {
332332
font-family: 'Roboto';
333333
}
334334
335-
.content :deep(a):hover {
336-
background-color: #39455f;
337-
}
338-
339335
.message-docs-header {
340336
padding: 20px 0;
341337
border-bottom: 2px solid var(--el-border-color-light);
@@ -395,11 +391,6 @@ div {
395391
transition: all 0.2s ease;
396392
}
397393
398-
.definition-item:hover {
399-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
400-
border-color: var(--el-color-primary);
401-
}
402-
403394
.definition-item h3 {
404395
color: var(--el-color-primary);
405396
margin-top: 0;
@@ -415,10 +406,6 @@ div {
415406
text-decoration: none;
416407
}
417408
418-
.definition-item a:hover h3 {
419-
text-decoration: underline;
420-
}
421-
422409
.no-definitions {
423410
text-align: center;
424411
padding: 40px 20px;

0 commit comments

Comments
 (0)