Browse Source
Remove the unused nc-button class
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7704/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
7 changed files with
5 additions and
75 deletions
-
src/assets/buttons.scss
-
src/components/ConversationSettings/ConversationPermissionsSettings.vue
-
src/components/Description/Description.vue
-
src/components/MessagesList/MessagesGroup/Message/Message.vue
-
src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue
-
src/components/NewMessageForm/NewMessageForm.vue
-
src/components/PermissionsEditor/PermissionsEditor.vue
|
|
|
@ -1,58 +0,0 @@ |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Marco Ambrosini <marcoambrosini@icloud.com> |
|
|
|
* |
|
|
|
* @author Marco Ambrosini <marcoambrosini@icloud.com> |
|
|
|
* |
|
|
|
* @license GNU AGPL version 3 or any later version |
|
|
|
* |
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
|
|
* it under the terms of the GNU Affero General Public License as |
|
|
|
* published by the Free Software Foundation, either version 3 of the |
|
|
|
* License, or (at your option) any later version. |
|
|
|
* |
|
|
|
* This program is distributed in the hope that it will be useful, |
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
* GNU Affero General Public License for more details. |
|
|
|
* |
|
|
|
* You should have received a copy of the GNU Affero General Public License |
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
@import 'variables'; |
|
|
|
|
|
|
|
.nc-button { |
|
|
|
width: $clickable-area; |
|
|
|
height: $clickable-area; |
|
|
|
flex-shrink: 0; |
|
|
|
border: 0; |
|
|
|
padding: 0; |
|
|
|
z-index: 1; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
margin: 0; |
|
|
|
&:not(.primary) { |
|
|
|
background-color: transparent; |
|
|
|
} |
|
|
|
&__main { |
|
|
|
&:hover, |
|
|
|
&:focus { |
|
|
|
background-color: var(--color-background-hover); |
|
|
|
} |
|
|
|
&:disabled { |
|
|
|
&:hover { |
|
|
|
background-color: var(--color-primary-element); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// Used on top of gray background such as hovered messages |
|
|
|
&__main--dark { |
|
|
|
&:hover, |
|
|
|
&:focus { |
|
|
|
background-color: var(--color-background-darker); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
@ -236,8 +236,6 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import '../../assets/buttons'; |
|
|
|
|
|
|
|
::v-deep .mx-input { |
|
|
|
margin: 0; |
|
|
|
} |
|
|
|
|
|
|
|
@ -243,7 +243,6 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import '../../assets/variables'; |
|
|
|
@import '../../assets/buttons'; |
|
|
|
|
|
|
|
.description { |
|
|
|
display: flex; |
|
|
|
|
|
|
|
@ -79,14 +79,13 @@ the main body of the message as well as a quote. |
|
|
|
@focus="showReloadButton = true" |
|
|
|
@mouseleave="showReloadButton = true" |
|
|
|
@blur="showReloadButton = true"> |
|
|
|
<Button v-if="sendingErrorCanRetry && showReloadButton" |
|
|
|
class="nc-button nc-button__main--dark" |
|
|
|
<ButtonVue v-if="sendingErrorCanRetry && showReloadButton" |
|
|
|
:aria-label="sendingErrorIconTooltip" |
|
|
|
@click="handleRetry"> |
|
|
|
<template #icon> |
|
|
|
<Reload :size="16" /> |
|
|
|
</template> |
|
|
|
</Button> |
|
|
|
</ButtonVue> |
|
|
|
<AlertCircle v-else |
|
|
|
:size="16" /> |
|
|
|
</div> |
|
|
|
@ -170,6 +169,7 @@ the main body of the message as well as a quote. |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import ButtonVue from '@nextcloud/vue/dist/Components/Button' |
|
|
|
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip' |
|
|
|
import CallButton from '../../../TopBar/CallButton.vue' |
|
|
|
import DeckCard from './MessagePart/DeckCard.vue' |
|
|
|
@ -204,6 +204,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
|
ButtonVue, |
|
|
|
CallButton, |
|
|
|
Quote, |
|
|
|
RichText, |
|
|
|
@ -782,7 +783,6 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import '../../../../assets/variables'; |
|
|
|
@import '../../../../assets/buttons'; |
|
|
|
|
|
|
|
.message:hover .normal-message-body { |
|
|
|
border-radius: 8px; |
|
|
|
|
|
|
|
@ -330,8 +330,6 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
@import '../../../assets/buttons'; |
|
|
|
|
|
|
|
.audio-recorder { |
|
|
|
display: flex; |
|
|
|
// Audio record button |
|
|
|
|
|
|
|
@ -561,7 +561,7 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import '../../assets/buttons'; |
|
|
|
@import '../../assets/variables'; |
|
|
|
|
|
|
|
.wrapper { |
|
|
|
display: flex; |
|
|
|
|
|
|
|
@ -220,13 +220,6 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import '../../assets/buttons'; |
|
|
|
|
|
|
|
.nc-button { |
|
|
|
width: 100%; |
|
|
|
margin-top: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.wrapper { |
|
|
|
padding: 0 24px 24px 24px; |
|
|
|
} |
|
|
|
|