| 1 |
/* --------- Common Image and Icon Picker Styles --------- */ |
| 2 |
|
| 3 |
.spectra-media-control { |
| 4 |
|
| 5 |
// The Overall Wrapper. |
| 6 |
&__wrapper { |
| 7 |
height: $spectra-control-mediapicker-height; |
| 8 |
border-radius: $spectra-control-border-radius; |
| 9 |
border: 1px solid $spectra-color-border; |
| 10 |
position: relative; |
| 11 |
background-color: $spectra-color-plain-background; |
| 12 |
background-position: center; |
| 13 |
background-repeat: no-repeat; |
| 14 |
background-size: cover; |
| 15 |
-webkit-display: flex; |
| 16 |
-moz-display: flex; |
| 17 |
-ms-display: flex; |
| 18 |
display: flex; |
| 19 |
flex-direction: column; |
| 20 |
justify-content: flex-end; |
| 21 |
|
| 22 |
&--small { |
| 23 |
height: $spectra-control-mediapicker-height-small; |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
// The Round Buttons |
| 28 |
&__button { |
| 29 |
width: 18px; |
| 30 |
height: 18px; |
| 31 |
-webkit-display: flex; |
| 32 |
-moz-display: flex; |
| 33 |
-ms-display: flex; |
| 34 |
display: flex; |
| 35 |
-webkit-align-items: center; |
| 36 |
align-items: center; |
| 37 |
justify-content: center; |
| 38 |
border-radius: 50%; |
| 39 |
|
| 40 |
&--add { |
| 41 |
background-color: $spectra-color-icon-disabled; |
| 42 |
|
| 43 |
svg path { |
| 44 |
fill: $spectra-color-plain-background; |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
&--close { |
| 49 |
background-color: $spectra-color-light-background; |
| 50 |
|
| 51 |
svg path { |
| 52 |
fill: $spectra-color-icon; |
| 53 |
} |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
// The Clickable Divs |
| 58 |
&__clickable { |
| 59 |
cursor: pointer; |
| 60 |
border: unset; |
| 61 |
color: transparent; |
| 62 |
background-color: transparent; |
| 63 |
|
| 64 |
&--add { |
| 65 |
width: 100%; |
| 66 |
height: 100%; |
| 67 |
-webkit-display: flex; |
| 68 |
-moz-display: flex; |
| 69 |
-ms-display: flex; |
| 70 |
display: flex; |
| 71 |
-webkit-align-items: center; |
| 72 |
align-items: center; |
| 73 |
justify-content: center; |
| 74 |
} |
| 75 |
|
| 76 |
&--replace { |
| 77 |
width: 100%; |
| 78 |
height: 25px; |
| 79 |
color: $spectra-color-body; |
| 80 |
background-color: $spectra-color-light-background; |
| 81 |
position: absolute; |
| 82 |
bottom: -1px; |
| 83 |
-webkit-display: flex; |
| 84 |
-moz-display: flex; |
| 85 |
-ms-display: flex; |
| 86 |
display: flex; |
| 87 |
-webkit-align-items: center; |
| 88 |
align-items: center; |
| 89 |
justify-content: center; |
| 90 |
|
| 91 |
.uag-control-label { |
| 92 |
margin-bottom: 0; |
| 93 |
} |
| 94 |
} |
| 95 |
|
| 96 |
&--close { |
| 97 |
position: absolute; |
| 98 |
top: 10px; |
| 99 |
right: 10px; |
| 100 |
} |
| 101 |
} |
| 102 |
|
| 103 |
// The Icon Area Rendered when an Icon is Required |
| 104 |
&__icon { |
| 105 |
width: 100%; |
| 106 |
flex: 1; |
| 107 |
-webkit-display: flex; |
| 108 |
-moz-display: flex; |
| 109 |
-ms-display: flex; |
| 110 |
display: flex; |
| 111 |
-webkit-align-items: center; |
| 112 |
align-items: center; |
| 113 |
justify-content: center; |
| 114 |
|
| 115 |
svg { |
| 116 |
width: 30px; |
| 117 |
height: 30px; |
| 118 |
} |
| 119 |
|
| 120 |
&--stroke svg path { |
| 121 |
stroke: $spectra-color-border-hover; |
| 122 |
} |
| 123 |
|
| 124 |
&--fill svg path { |
| 125 |
fill: $spectra-color-border-hover; |
| 126 |
} |
| 127 |
|
| 128 |
& + .spectra-media-control__clickable--replace { |
| 129 |
position: relative; |
| 130 |
} |
| 131 |
} |
| 132 |
} |
| 133 |
|