123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <div class='index'>
- <div class='thread_sorting'>
- <div class='button button--orange'>New</div>
- <div class='button'>Most active</div>
- <div class='button'>No replies</div>
- </div>
- <div class='threads'>
- <div class='thread thread--header'>
- <div class='thread__section thread__section--header thread__section--width-title'>Title</div>
- <div class='thread__section thread__section--header thread__section--width-post'>Latest post</div>
- <div class='thread__section thread__section--header thread__section--width-replies'>Replies</div>
- </div>
- <div class='thread thread--hover'>
- <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
- <div class='thread__section thread__section--width-post'>
- <div class='thread__user'>Qwert azerty</div>
- <div class='thread__date'>10/11/2016 15:13</div>
- </div>
- <div class='thread__section thread__section--width-replies'>20</div>
- </div>
- <div class='thread thread--hover'>
- <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
- <div class='thread__section thread__section--width-post'>
- <div class='thread__user'>Qwert azerty</div>
- <div class='thread__date'>10/11/2016 15:13</div>
- </div>
- <div class='thread__section thread__section--width-replies'>20</div>
- </div>
- <div class='thread thread--hover'>
- <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
- <div class='thread__section thread__section--width-post'>
- <div class='thread__user'>Qwert azerty</div>
- <div class='thread__date'>10/11/2016 15:13</div>
- </div>
- <div class='thread__section thread__section--width-replies'>20</div>
- </div>
- <div class='thread thread--hover'>
- <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
- <div class='thread__section thread__section--width-post'>
- <div class='thread__user'>Qwert azerty</div>
- <div class='thread__date'>10/11/2016 15:13</div>
- </div>
- <div class='thread__section thread__section--width-replies'>20</div>
- </div>
- <div class='thread thread--hover'>
- <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
- <div class='thread__section thread__section--width-post'>
- <div class='thread__user'>Qwert azerty</div>
- <div class='thread__date'>10/11/2016 15:13</div>
- </div>
- <div class='thread__section thread__section--width-replies'>20</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'index'
- }
- </script>
- <style lang='scss' scoped>
- @import '../../assets/scss/variables.scss';
- .index {
- width: 80%;
- margin: 0 auto;
- margin-top: 2rem;
- }
- .thread_sorting {
- margin-bottom: 1rem;
- }
- .thread {
- display: flex;
- background-color: #fff;
- padding: 0.5rem 0;
- cursor: default;
- @at-root #{&}--hover {
- transition: background-color 0.2s;
- &:hover {
- background-color: $color__lightgray--primary;
- }
- }
- @at-root #{&}--header {
- border-bottom: thin solid $color__lightgray--darkest;
- }
- @at-root #{&}__section {
- padding: 0 0.5rem;
- @at-root #{&}--header {
- font-weight: 400;
- }
- @at-root #{&}--width-title {
- width: 60%;
- }
- @at-root #{&}--width-post {
- width: 30%
- }
- @at-root #{&}--width-replies {
- width: 10%;
- }
- }
- @at-root #{&}__user {
- display: inline-block;
- }
- @at-root #{&}__date {
- color: $color__text--secondary;
- display: inline-block;
- }
- }
- </style>
|