summaryrefslogtreecommitdiffstats
path: root/assets/sass/@primer/css/navigation/underline-nav.scss
diff options
context:
space:
mode:
Diffstat (limited to 'assets/sass/@primer/css/navigation/underline-nav.scss')
-rw-r--r--assets/sass/@primer/css/navigation/underline-nav.scss81
1 files changed, 81 insertions, 0 deletions
diff --git a/assets/sass/@primer/css/navigation/underline-nav.scss b/assets/sass/@primer/css/navigation/underline-nav.scss
new file mode 100644
index 0000000..7b9309d
--- /dev/null
+++ b/assets/sass/@primer/css/navigation/underline-nav.scss
@@ -0,0 +1,81 @@
+.UnderlineNav {
+ display: flex;
+ overflow-x: auto;
+ overflow-y: hidden;
+ border-bottom: $border;
+ justify-content: space-between;
+}
+
+.UnderlineNav-body {
+ display: flex;
+}
+
+.UnderlineNav-item {
+ padding: $spacer-3 $spacer-2;
+ margin-right: $spacer-3;
+ font-size: $body-font-size;
+ line-height: $lh-default;
+ color: $text-gray;
+ text-align: center;
+ white-space: nowrap;
+ background-color: transparent;
+ border: 0;
+ // stylelint-disable-next-line primer/borders
+ border-bottom: 2px $border-style transparent;
+
+ &:hover,
+ &:focus {
+ color: $text-gray-dark;
+ text-decoration: none;
+ border-bottom-color: $border-gray-dark;
+ transition: 0.2s ease;
+
+ .UnderlineNav-octicon {
+ color: $text-gray-light;
+ }
+ }
+
+ &.selected,
+ &[role=tab][aria-selected=true],
+ &[aria-current] {
+ font-weight: $font-weight-bold;
+ color: $text-gray-dark;
+ // stylelint-disable-next-line primer/borders
+ border-bottom-color: $orange-600;
+
+ .UnderlineNav-octicon {
+ color: $text-gray-light;
+ }
+ }
+}
+
+.UnderlineNav--right {
+ justify-content: flex-end;
+
+ .UnderlineNav-item {
+ margin-right: 0;
+ margin-left: $spacer-3;
+ }
+
+ .UnderlineNav-actions {
+ flex: 1 1 auto;
+ }
+}
+
+.UnderlineNav-actions {
+ align-self: center;
+}
+
+.UnderlineNav--full {
+ display: block;
+}
+
+.UnderlineNav-octicon {
+ // stylelint-disable-next-line primer/colors
+ color: $gray-400;
+}
+
+.UnderlineNav-container {
+ display: flex;
+ justify-content: space-between;
+}