| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 // This file is part of help.eyeo.com. | 1 // This file is part of help.eyeo.com. |
| 2 // Copyright (C) 2017 Eyeo GmbH | 2 // Copyright (C) 2017 Eyeo GmbH |
| 3 // | 3 // |
| 4 // help.eyeo.com is free software: you can redistribute it and/or modify | 4 // help.eyeo.com is free software: you can redistribute it and/or modify |
| 5 // it under the terms of the GNU General Public License as published by | 5 // it under the terms of the GNU General Public License as published by |
| 6 // the Free Software Foundation, either version 3 of the License, or | 6 // the Free Software Foundation, either version 3 of the License, or |
| 7 // (at your option) any later version. | 7 // (at your option) any later version. |
| 8 // | 8 // |
| 9 // help.eyeo.com is distributed in the hope that it will be useful, | 9 // help.eyeo.com is distributed in the hope that it will be useful, |
| 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 // GNU General Public License for more details. | 12 // GNU General Public License for more details. |
| 13 // | 13 // |
| 14 // You should have received a copy of the GNU General Public License | 14 // You should have received a copy of the GNU General Public License |
| 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. | 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
| 17 // Underlined Lists ///////////////////////////////////////////////////// | 17 /******************************************************************************* |
| 18 * Lists | |
| 19 ******************************************************************************/ | |
| 20 | |
| 21 /* Underlined List | |
| 22 ******************************************************************************/ | |
| 18 | 23 |
| 19 .underlined-list | 24 .underlined-list |
| 20 { | 25 { |
| 21 list-style: none; | 26 list-style: none; |
| 22 } | 27 } |
| 23 | 28 |
| 24 .underlined-list li a | 29 .underlined-list li a |
| 25 { | 30 { |
| 26 display: block; | 31 display: block; |
| 27 padding-top: $sm; | 32 padding-top: $sm; |
| 28 padding-bottom: $sm; | 33 padding-bottom: $sm; |
| 29 border-bottom: 1px dotted $gray; | 34 border-bottom: 1px dotted $gray; |
| 30 color: $accent; | 35 color: $accent; |
| 31 } | 36 } |
| 32 | 37 |
| 33 .underlined-list li:last-child a | 38 .underlined-list li:last-child a |
| 34 { | 39 { |
| 35 border-bottom: none; | 40 border-bottom: none; |
| 36 } | 41 } |
| 37 | 42 |
| 38 // For underlined lists that split into two columns, remove the | 43 /* |
|
juliandoucette
2017/11/06 13:06:57
NIT: I think you can start writing on the first li
ire
2017/11/06 14:41:16
Done.
| |
| 39 // border-bottom from the 2nd-to-last item on larger screens | 44 * For underlined lists that split into two columns, remove the |
| 40 // (when expanded to two columns) | 45 * border-bottom from the 2nd-to-last item on larger screens |
| 46 * (when expanded to two columns) | |
| 47 */ | |
| 41 | 48 |
| 42 .underlined-list .one-half:nth-last-child(2) a | 49 .underlined-list .one-half:nth-last-child(2) a |
| 43 { | 50 { |
| 44 @media (min-width: $tablet-breakpoint) | 51 @media (min-width: $tablet-breakpoint) |
| 45 { | 52 { |
| 46 border-bottom: none; | 53 border-bottom: none; |
| 47 } | 54 } |
| 48 } | 55 } |
| 49 | 56 |
| 50 // For underlined lists that split into two columns, add a border-top | 57 /* |
| 51 // to the first 2 children on larger screens, and only the first | 58 * For underlined lists that split into two columns, add a border-top |
| 52 // child on smaller screens (when collapsed to one column) | 59 * to the first 2 children on larger screens, and only the first |
| 60 * child on smaller screens (when collapsed to one column) | |
| 61 */ | |
| 53 | 62 |
| 54 .underlined-list .one-half:nth-child(1) a | 63 .underlined-list .one-half:nth-child(1) a |
| 55 { | 64 { |
| 56 border-top: 1px dotted $gray; | 65 border-top: 1px dotted $gray; |
| 57 } | 66 } |
| 58 | 67 |
| 59 .underlined-list .one-half:nth-child(2) a | 68 .underlined-list .one-half:nth-child(2) a |
| 60 { | 69 { |
| 61 @media (min-width: $tablet-breakpoint) | 70 @media (min-width: $tablet-breakpoint) |
| 62 { | 71 { |
| 63 border-top: 1px dotted $gray; | 72 border-top: 1px dotted $gray; |
| 64 } | 73 } |
| 65 } | 74 } |
| 66 | 75 |
| 67 // Horizontal List ////////////////////////////////////////////////////// | 76 /* Horizontal List |
| 77 ******************************************************************************/ | |
| 68 | 78 |
| 69 .horizontal-list | 79 .horizontal-list |
| 70 { | 80 { |
| 71 display: inline; | 81 display: inline; |
| 72 list-style: none; | 82 list-style: none; |
| 73 } | 83 } |
| 74 | 84 |
| 75 .horizontal-list li | 85 .horizontal-list li |
| 76 { | 86 { |
| 77 display: inline; | 87 display: inline; |
| 78 list-style: none; | 88 list-style: none; |
| 79 } | 89 } |
| 80 | 90 |
| 81 [dir="rtl"] .horizontal-list | 91 [dir="rtl"] .horizontal-list |
| 82 { | 92 { |
| 83 padding: 0; | 93 padding: 0; |
| 84 } | 94 } |
| OLD | NEW |