ghost-portal/packages/react-components/src/styles/components.ts
Jaco Greeff 7635e01090
Align with extension, copy seed button (#3581)
* Align with extension, copy seed button

* Move location (allows hover)
2020-08-31 22:55:05 +02:00

121 lines
2.3 KiB
TypeScript

// Copyright 2017-2020 @polkadot/react-components authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { css } from 'styled-components';
export default css`
.ui--output {
background: #fefefe;
border-radius: 4px;
border: 1px dashed #eee;
box-sizing: border-box;
line-height: 1rem;
max-height: 25rem;
overflow-y: auto;
padding: 0.75rem 1rem;
position: relative;
word-break: break-all;
&.error {
background: #fff6f6;
border-color: #e0b4b4;
}
&.monospace {
font-family: monospace;
}
.ui--output-button {
position: absolute;
top: 0.25rem;
right: 0.25rem;
}
}
header .ui--Button-Group {
text-align: center;
}
.ui.input .ui--Button-Group {
margin: 0;
}
button.u.ui--Icon.icon-button {
padding-top: 0;
padding-right: 0;
padding-bottom: 0.3em;
padding-left: 0.3em;
color: #2e86ab !important;
background: none !important;
}
.editable {
cursor: pointer;
}
.ui--DropdownLinked.ui--row {
.small .ui.selection.dropdown {
border-right: none;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
min-width: 5rem;
}
.large .ui.selection.dropdown {
border-left: none;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}
.ui--Input {
&.disabled {
overflow: hidden;
input {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
&.inPlaceEditor {
margin: 0 !important;
input {
padding: 0 !important;
background: rgba(230, 230, 230, 0.8) !important;
border: 0 !important;
border-radius: 0 !important;
box-shadow: 0 3px 3px rgba(0,0,0,.2);
}
}
&.isWarning.ui.input {
> input,
input:focus {
background: #ffffe0;
border-color: #eeeeae;
}
}
.ui--SiDropdown {
width: 6rem;
text-align: center;
}
}
.ui--Static {
min-width: 2rem; /* adjust width from normal dropdown sizing */
overflow: hidden;
word-break: break-all;
}
.ui--Tooltip {
text-align: center;
z-index: 1002;
max-width: 300px;
}
`;