|
| 1 | +@import 'variables'; |
| 2 | +@import 'helpers'; |
| 3 | + |
| 4 | +/*----------------------------------------------------------------------------------* |
| 5 | + * Stories overview page & Story items |
| 6 | + *----------------------------------------------------------------------------------*/ |
| 7 | + |
| 8 | +#collection-navigation { |
| 9 | + display: block; |
| 10 | + text-align: center; |
| 11 | + z-index: 10; |
| 12 | + left: 10%; |
| 13 | + |
| 14 | + a { |
| 15 | + position: relative; |
| 16 | + display: inline-block; |
| 17 | + padding: 10px 20px; |
| 18 | + margin: 25px 30px 15px 30px; |
| 19 | + font-weight: bold; |
| 20 | + text-transform: uppercase; |
| 21 | + border: 2px solid #b2a38a; |
| 22 | + color: #b2a38a; |
| 23 | + letter-spacing: 2px; |
| 24 | + font-size: .8em; |
| 25 | + background-color: transparent; |
| 26 | + text-decoration: none; |
| 27 | + transition: all .45s ease-out; |
| 28 | + } |
| 29 | + |
| 30 | + .underline { |
| 31 | + position: absolute; |
| 32 | + width: 0; |
| 33 | + height: 2.5px; |
| 34 | + background: white; |
| 35 | + transition: all .3s ease-Out; |
| 36 | + bottom: 0; |
| 37 | + left: 0; |
| 38 | + } |
| 39 | + |
| 40 | + a { |
| 41 | + &:hover { |
| 42 | + .underline { |
| 43 | + width: 100%; |
| 44 | + } |
| 45 | + |
| 46 | + color: white; |
| 47 | + background-color: #b2a38a; |
| 48 | + } |
| 49 | + |
| 50 | + &.active { |
| 51 | + color: white; |
| 52 | + background-color: #b2a38a; |
| 53 | + } |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +#grid { |
| 58 | + padding-bottom: 30px; |
| 59 | + margin: 15px auto 0; |
| 60 | +} |
| 61 | + |
| 62 | +.story-item { |
| 63 | + .image { |
| 64 | + width: 100%; |
| 65 | + height: auto; |
| 66 | + } |
| 67 | + |
| 68 | + &:hover .image { |
| 69 | + |
| 70 | + } |
| 71 | + |
| 72 | + /* this class makes sure the story image doesn't get to big */ |
| 73 | + .trim { |
| 74 | + max-height: 500px; |
| 75 | + overflow: hidden; |
| 76 | + |
| 77 | + @include prefix(box-shadow, (0 0 5px rgba(0,0,0,0.5)), webkit moz o); |
| 78 | + } |
| 79 | +} |
| 80 | + |
| 81 | +.softcolor { |
| 82 | + color: #868686; |
| 83 | +} |
| 84 | + |
| 85 | +/*************** |
| 86 | + * Cards |
| 87 | + ***************/ |
| 88 | + |
| 89 | +.card { |
| 90 | + position: relative; |
| 91 | + background-color: white; |
| 92 | + margin-top: 10px; |
| 93 | + margin-bottom: 0; |
| 94 | + |
| 95 | + @include prefix(transition, (all 0.3s), webkit moz o); |
| 96 | + |
| 97 | + border-radius: 3px; |
| 98 | + |
| 99 | + h1, h2, h3, h4, h5, h6 { |
| 100 | + margin: 0; |
| 101 | + } |
| 102 | + |
| 103 | + .card-content { |
| 104 | + $left: 5%; |
| 105 | + $border-color: #ad9977; |
| 106 | + |
| 107 | + position: relative; |
| 108 | + background-color: white; |
| 109 | + top: -3vh; |
| 110 | + margin-left: $left; |
| 111 | + margin-right: 2%; |
| 112 | + padding: 25px 16px 15px 25px; |
| 113 | + |
| 114 | + border-top: 2px solid $border-color; |
| 115 | + |
| 116 | + @include prefix(box-shadow, (0 0 4px rgba(0,0,0,0.3)), webkit moz o); |
| 117 | + |
| 118 | + .title { |
| 119 | + width: 100%; |
| 120 | + margin-bottom: 15px; |
| 121 | + font-size: 24px; |
| 122 | + } |
| 123 | + |
| 124 | + .title:after { |
| 125 | + content: ''; |
| 126 | + width: 25%; |
| 127 | + height: 3px; |
| 128 | + background-color: $primary-color; |
| 129 | + } |
| 130 | + |
| 131 | + .sneak-peek { |
| 132 | + text-overflow: ellipsis; |
| 133 | + word-wrap: break-word; |
| 134 | + margin: 10px 0 13px 0; |
| 135 | + } |
| 136 | + |
| 137 | + .info { |
| 138 | + color: #727272; |
| 139 | + } |
| 140 | + |
| 141 | + .programming-language-tooltip { |
| 142 | + background-color: $border-color; |
| 143 | + font-size: 15px; |
| 144 | + color: white; |
| 145 | + position: absolute; |
| 146 | + padding: 5px; |
| 147 | + |
| 148 | + border-radius: 2px; |
| 149 | + |
| 150 | + top: -20px; |
| 151 | + right: 15px; |
| 152 | + |
| 153 | + @include prefix(box-shadow, (0 1px 4px 0 rgba(0, 0, 0, 0.2)), webkit moz); |
| 154 | + } |
| 155 | + |
| 156 | + } |
| 157 | + |
| 158 | +} |
| 159 | + |
0 commit comments