Browse Source

Remove the unused nc-button class

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7704/head
Joas Schilling 3 years ago
parent
commit
dc0a85115c
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 58
      src/assets/buttons.scss
  2. 2
      src/components/ConversationSettings/ConversationPermissionsSettings.vue
  3. 1
      src/components/Description/Description.vue
  4. 8
      src/components/MessagesList/MessagesGroup/Message/Message.vue
  5. 2
      src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue
  6. 2
      src/components/NewMessageForm/NewMessageForm.vue
  7. 7
      src/components/PermissionsEditor/PermissionsEditor.vue

58
src/assets/buttons.scss

@ -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);
}
}
}

2
src/components/ConversationSettings/ConversationPermissionsSettings.vue

@ -236,8 +236,6 @@ export default {
</script>
<style lang="scss" scoped>
@import '../../assets/buttons';
::v-deep .mx-input {
margin: 0;
}

1
src/components/Description/Description.vue

@ -243,7 +243,6 @@ export default {
<style lang="scss" scoped>
@import '../../assets/variables';
@import '../../assets/buttons';
.description {
display: flex;

8
src/components/MessagesList/MessagesGroup/Message/Message.vue

@ -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;

2
src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue

@ -330,8 +330,6 @@ export default {
<style lang="scss" scoped>
@import '../../../assets/buttons';
.audio-recorder {
display: flex;
// Audio record button

2
src/components/NewMessageForm/NewMessageForm.vue

@ -561,7 +561,7 @@ export default {
</script>
<style lang="scss" scoped>
@import '../../assets/buttons';
@import '../../assets/variables';
.wrapper {
display: flex;

7
src/components/PermissionsEditor/PermissionsEditor.vue

@ -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;
}

Loading…
Cancel
Save