NUDR / frontend /src /components /PromptBarButton.module.css
magicboris's picture
Upload 83 files
3647b02 verified
raw
history blame
1.67 kB
/*
* SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.button {
position: absolute;
right: 0.5rem;
bottom: 0.75rem;
padding: 0.5rem;
background: none;
border: none;
cursor: pointer;
border-radius: 0.5rem;
transition: all 0.2s ease-in-out;
}
.button:hover {
background-color: rgb(229 231 235);
}
.button.disabled {
cursor: not-allowed;
opacity: 0.5;
}
.button.disabled:hover {
background-color: transparent;
}
.icon {
height: 1.25rem;
width: 1.25rem;
color: rgb(156 163 175);
transition: color 0.2s ease-in-out;
}
.button:hover .icon {
color: rgb(107 114 128);
}
.button.disabled:hover .icon {
color: rgb(156 163 175);
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
.button:hover {
background-color: rgb(55 65 81);
}
.icon {
color: rgb(107 114 128);
}
.button:hover .icon {
color: rgb(156 163 175);
}
.button.disabled:hover {
background-color: transparent;
}
.button.disabled:hover .icon {
color: rgb(107 114 128);
}
}