Skip to content

Commit

Permalink
Correct manually :deep() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cnotv committed Sep 23, 2024
1 parent 8319730 commit 2c707b4
Show file tree
Hide file tree
Showing 21 changed files with 108 additions and 113 deletions.
32 changes: 15 additions & 17 deletions pkg/kubectl-explain/components/ExplainPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default {
</div>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.main {
overflow: auto;
Expand Down Expand Up @@ -302,24 +302,22 @@ export default {
}
}
</style>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.markdown {
:deep( ) {
P {
line-height: 1.25;
margin-bottom: 10px;
}
:deep(.markdown) {
P {
line-height: 1.25;
margin-bottom: 10px;
}
LI:not(:last-child) {
margin-bottom: 10px;
}
LI:not(:last-child) {
margin-bottom: 10px;
}
code {
font-size: 12.5px;
line-height: normal;
padding: 0;
}
}
code {
font-size: 12.5px;
line-height: normal;
padding: 0;
}
}
</style>
10 changes: 5 additions & 5 deletions pkg/rancher-components/src/components/StringList/StringList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,13 @@ export default defineComponent({
}
}
:deep( ) {
.labeled-input INPUT.no-label,
.labeled-input INPUT:hover.no-label,
.labeled-input INPUT:focus.no-label {
:deep(.labeled-input) {
INPUT.no-label,
INPUT:hover.no-label,
INPUT:focus.no-label {
padding: 1px 0px 0px 0px;
}
.labeled-input.compact-input {
&.compact-input {
min-height: 0;
}
}
Expand Down
6 changes: 3 additions & 3 deletions shell/components/ButtonDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default {
</v-select>
</template>

<style lang='scss' scoped>
<style lang='scss' scoped>
// TODO #11952: Correct deep statement
.button-dropdown.btn-sm {
:deep( > .vs__dropdown-toggle ) {
Expand All @@ -252,7 +252,7 @@ export default {
color: var(--link);
padding: 0;
&.vs--open :deep( ) {
&:deep( .vs--open) {
outline: none;
box-shadow: none;
}
Expand All @@ -273,7 +273,7 @@ export default {
}
}
:deep( > .vs__dropdown-toggle ) {
> :deep(.vs__dropdown-toggle ) {
width: 100%;
display: grid;
grid-template-columns: 75% 25%;
Expand Down
11 changes: 5 additions & 6 deletions shell/components/ChartReadme.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
</div>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.chart-readmes {
& > h1 {
Expand All @@ -64,13 +64,14 @@ export default {
max-width: 100%;
line-height: 1.6;
:deep( ) {
:deep(
* + H1,
* + H2,
* + H3,
* + H4,
* + H5,
* + H6 {
* + H6
) {
margin-top: 20px;
}
}
Expand All @@ -89,13 +90,11 @@ export default {
word-break: break-word;
}
:deep( > h1:first-of-type ) {
> :deep(h1:first-of-type ) {
display: none;
}
:deep( p ) {
margin-bottom: 0.5em;
}
}
</style>
6 changes: 3 additions & 3 deletions shell/components/DashboardMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ export default {
</div>
</template>

<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.dashboard-metrics {
& :deep( ) {
:deep(&) {
.external-link {
position: absolute;
left: 200px;
Expand All @@ -115,7 +115,7 @@ export default {
}
.dashboard-metrics.external-link-pull-left {
& :deep( ) {
:deep(&) {
.external-link {
position: absolute;
left: 10px;
Expand Down
2 changes: 1 addition & 1 deletion shell/components/ExplorerMembers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default {
</div>
</template>
<style lang='scss' scoped>
<style lang='scss' scoped>
// TODO #11952: Correct deep statement
.role {
Expand Down
6 changes: 3 additions & 3 deletions shell/components/ExplorerProjectsNamespaces.vue
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,10 @@ export default {
<MoveModal @moving="clearSelection" />
</div>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.project-namespaces {
& :deep( ) {
:deep(&) {
.project-namespaces-table table {
table-layout: fixed;
}
Expand Down Expand Up @@ -569,7 +569,7 @@ export default {
}
}
</style>
<style lang="scss">
<style lang="scss">
// TODO #11952: Correct deep statement
.psa-tooltip {
// These could pop up a lot as the mouse moves around, keep them as small and unintrusive as possible
Expand Down
16 changes: 7 additions & 9 deletions shell/components/Markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,15 @@ export default {
<Loading v-else />
</template>

<style lang="scss">
<style lang="scss">
// TODO #11952: Correct deep statement
:deep( ) {
P {
font-size: initial;
line-height: initial;
font-weight: initial;
letter-spacing: initial;
font-style: normal;
}
:deep(P) {
font-size: initial;
line-height: initial;
font-weight: initial;
letter-spacing: initial;
font-style: normal;
}
.markdown {
Expand Down
36 changes: 17 additions & 19 deletions shell/components/auth/RoleDetailEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -797,34 +797,32 @@ export default {
</CruResource>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.required {
color: var(--error);
}
:deep( ) {
.column-headers {
margin-right: 75px;
margin-bottom: 5px;
}
:deep(.column-headers) {
margin-right: 75px;
margin-bottom: 5px;
}
.box {
align-items: initial;
:deep(.box) {
align-items: initial;
.remove {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
}
.remove {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
}
}
.columns {
.col > .unlabeled-select:not(.taggable) {
// override the odd padding-top from shell/assets/styles/global/_select.scss
padding: $unlabaled-select-padding
}
:deep(.columns) {
.col > .unlabeled-select:not(.taggable) {
// override the odd padding-top from shell/assets/styles/global/_select.scss
padding: $unlabaled-select-padding
}
}
</style>
4 changes: 2 additions & 2 deletions shell/components/form/EnvVars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export default {
</div>
</template>

<style lang='scss' scoped>
<style lang='scss' scoped>
// TODO #11952: Correct deep statement
.value-from :deep( ) {
:deep(.value-from) {
.v-select {
height: 50px;
}
Expand Down
14 changes: 7 additions & 7 deletions shell/components/form/InputWithSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default {
</div>
</template>

<style lang='scss' scoped>
<style lang='scss' scoped>
// TODO #11952: Correct deep statement
.input-container {
display: flex;
Expand Down Expand Up @@ -285,18 +285,18 @@ export default {
border: 1px solid var(--outline) !important;
}
&.labeled-select.focused :deep(),
&.unlabeled-select.focused :deep( ) {
&:deep(.labeled-select.focused),
&:deep(.unlabeled-select.focused) {
outline: none;
}
&.labeled-select:not(.disabled):not(.view) :deep(),
&.unlabeled-select:not(.disabled):not(.view) :deep( ) {
&:deep(.labeled-select:not(.disabled):not(.view)),
&:deep(.unlabeled-select:not(.disabled):not(.view)) {
border: solid 1px var(--input-border);
}
&.labeled-select :deep(),
&.unlabeled-select :deep( ) {
&:deep(.labeled-select ),
&:deep(.unlabeled-select ) {
box-shadow: none;
width: 20%;
margin-right: 1px; // push the input box right so the full focus outline of the select can be seen, z-index borks
Expand Down
4 changes: 2 additions & 2 deletions shell/components/form/LabeledSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export default {
</div>
</template>
<style lang='scss' scoped>
<style lang='scss' scoped>
// TODO #11952: Correct deep statement
.labeled-select {
Expand Down Expand Up @@ -559,7 +559,7 @@ export default {
}
}
.no-label :deep( ) {
:deep(.no-label) {
&.v-select:not(.vs--single) {
min-height: 33px;
}
Expand Down
4 changes: 2 additions & 2 deletions shell/components/form/NameNsDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default {
</div>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
button {
all: unset;
Expand All @@ -527,7 +527,7 @@ button {
max-height: $input-height;
}
.namespace-select :deep( ) {
:deep(.namespace-select) {
.labeled-select {
min-width: 40%;
Expand Down
4 changes: 2 additions & 2 deletions shell/components/form/ServicePorts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default {
</div>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
$remove: 75;
$checkbox: 75;
Expand Down Expand Up @@ -320,7 +320,7 @@ export default {
height: 100%;
}
.port-protocol :deep( ) {
:deep(.port-protocol) {
.unlabeled-select {
.v-select.inline {
margin-top: 2px;
Expand Down
18 changes: 8 additions & 10 deletions shell/components/formatter/ClusterLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
</span>
</template>
<style lang="scss" scoped>
<style lang="scss" scoped>
// TODO #11952: Correct deep statement
.cluster-link {
display: flex;
Expand All @@ -94,15 +94,13 @@ export default {
color: var(--error);
margin-left: 4px;
}
:deep( ) {
.labeled-tooltip, .status-icon {
position: relative;
display: inline;
left: auto;
right: auto;
top: 2px;
bottom: auto;
}
:deep(.labeled-tooltip, .status-icon) {
position: relative;
display: inline;
left: auto;
right: auto;
top: 2px;
bottom: auto;
}
.mytooltip ul {
outline: 1px dashed red;
Expand Down
Loading

0 comments on commit 2c707b4

Please sign in to comment.