| 1 |
@import "../common"; |
| 2 |
|
| 3 |
%listStyle { |
| 4 |
display: inline-block; |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
list-style: none; |
| 8 |
li { |
| 9 |
margin: 10px; |
| 10 |
list-style: none; |
| 11 |
display: flex; |
| 12 |
align-items: center; |
| 13 |
position: relative; |
| 14 |
@include for(".betterdocs-popular-articles-wrapper") { |
| 15 |
display: flex; |
| 16 |
flex-direction: row; |
| 17 |
align-items: center; |
| 18 |
a { |
| 19 |
font-size: 17px; |
| 20 |
} |
| 21 |
} |
| 22 |
img, |
| 23 |
svg { |
| 24 |
width: 15px; |
| 25 |
font-size: 15px; |
| 26 |
flex-shrink: 0; |
| 27 |
margin-right: 10px; |
| 28 |
@include for( |
| 29 |
".betterdocs-category-grid-list-inner-wrapper.layout-6 " |
| 30 |
) { |
| 31 |
margin-right: 0; |
| 32 |
} |
| 33 |
@at-root .single-kb #{&} { |
| 34 |
fill: #566e8b; |
| 35 |
} |
| 36 |
@include for(".betterdocs-popular-articles-wrapper") { |
| 37 |
display: flex; |
| 38 |
align-items: center; |
| 39 |
font-size: 15px; |
| 40 |
width: 15px; |
| 41 |
fill: #a6a4ef; |
| 42 |
} |
| 43 |
} |
| 44 |
@include for(".betterdocs-sidebar-list") { |
| 45 |
&:not(.betterdocs-nested-category-wrapper) { |
| 46 |
flex-direction: row; |
| 47 |
align-items: center; |
| 48 |
} |
| 49 |
display: flex; |
| 50 |
margin-bottom: 10px; |
| 51 |
padding-top: 0px; |
| 52 |
padding-right: 0px; |
| 53 |
padding-bottom: 0px; |
| 54 |
padding-left: 0px; |
| 55 |
list-style: none; |
| 56 |
} |
| 57 |
a { |
| 58 |
font-size: 15px; |
| 59 |
transition: all 0.3s; |
| 60 |
outline: none; |
| 61 |
text-decoration: none; |
| 62 |
color: #566e8b; |
| 63 |
line-height: 2; |
| 64 |
@include for(".betterdocs-popular-articles-wrapper") { |
| 65 |
transition: all 0.3s; |
| 66 |
outline: none; |
| 67 |
font-size: 15px; |
| 68 |
color: #566e8b; |
| 69 |
line-height: 2; |
| 70 |
&:hover { |
| 71 |
color: #528ffe; |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
@include for( |
| 76 |
".betterdocs-single-category-wrapper .betterdocs-single-category-inner" |
| 77 |
) { |
| 78 |
&:not(.betterdocs-nested-category-wrapper) { |
| 79 |
margin-left: 10px; |
| 80 |
margin-right: 10px; |
| 81 |
margin-top: 10px; |
| 82 |
margin-bottom: 10px; |
| 83 |
// color: #566e8b; |
| 84 |
display: flex; |
| 85 |
flex-direction: row; |
| 86 |
align-items: center; |
| 87 |
} |
| 88 |
i { |
| 89 |
line-height: 1.8; |
| 90 |
margin-right: 10px; |
| 91 |
} |
| 92 |
a { |
| 93 |
color: #566e8b; |
| 94 |
text-decoration: none; |
| 95 |
&:hover, |
| 96 |
&.active { |
| 97 |
color: #528fff; |
| 98 |
} |
| 99 |
} |
| 100 |
} |
| 101 |
} |
| 102 |
.betterdocs-nested-category-wrapper { |
| 103 |
display: flex; |
| 104 |
flex-direction: column; |
| 105 |
align-items: stretch; |
| 106 |
margin-left: 0; |
| 107 |
margin-right: 0; |
| 108 |
margin-bottom: 0; |
| 109 |
.betterdocs-nested-category-title { |
| 110 |
display: flex; |
| 111 |
align-items: center; |
| 112 |
cursor: pointer; |
| 113 |
margin-left: 10px; |
| 114 |
margin-right: 10px; |
| 115 |
img, |
| 116 |
svg { |
| 117 |
fill: #566e8b; |
| 118 |
width: 15px; |
| 119 |
font-size: 15px; |
| 120 |
flex-shrink: 0; |
| 121 |
&.arrow-down { |
| 122 |
display: none; |
| 123 |
} |
| 124 |
} |
| 125 |
@at-root .single-kb #{&} { |
| 126 |
a { |
| 127 |
color: #566e8b; |
| 128 |
text-decoration: none; |
| 129 |
} |
| 130 |
} |
| 131 |
} |
| 132 |
} |
| 133 |
.betterdocs-nested-category-list { |
| 134 |
display: none; |
| 135 |
margin-left: 20px; |
| 136 |
padding-left: 0; |
| 137 |
&.active { |
| 138 |
display: block; |
| 139 |
} |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
.betterdocs-articles-list { |
| 144 |
@extend %listStyle; |
| 145 |
} |
| 146 |
|