improvements in table header

pull/26/head
Ondřej Hruška 6 years ago
parent 3f8fa07a82
commit f879d195df
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      resources/assets/sass/_helpers.scss
  2. 4
      resources/assets/sass/app.scss
  3. 21
      resources/views/table/view.blade.php

@ -42,3 +42,7 @@
.box-shadow { .box-shadow {
box-shadow: 0 2px 3px rgba(black, .3); box-shadow: 0 2px 3px rgba(black, .3);
} }
.small2 {
font-size: 70%;
}

@ -15,3 +15,7 @@ html {
@import "bootstrap-customizations/navbar"; @import "bootstrap-customizations/navbar";
@import "bootstrap-customizations/footer"; @import "bootstrap-customizations/footer";
@import "bootstrap-customizations/help"; @import "bootstrap-customizations/help";
a.link-no-color {
color: unset;
}

@ -7,8 +7,16 @@
@endphp @endphp
@section('content') @section('content')
<div class="row justify-content-center"> <div class="row justify-content-start px-3">
<h2>{{ $table->title }}</h2> <h2 class="d-flex w-100 align-items-baseline">
<small class="small2 flex-grow-1">
<a href="{{route('profile.view', $table->owner->name)}}" class="link-no-color">{{ $table->owner->handle }}</a>{{--
--}}<span class="px-1">/</span>{{--
--}}{{ $table->name }}
</small>
<span class="">{{ $table->title }}</span>
</h2>
</div> </div>
<div class="row mx-auto col-md-12 justify-content-center mb-1 border rounded px-0 py-2 box-shadow mb-3"> <div class="row mx-auto col-md-12 justify-content-center mb-1 border rounded px-0 py-2 box-shadow mb-3">
@ -31,6 +39,15 @@
<table> <table>
<tbody> <tbody>
<tr>
<th class="text-right pr-2">Author</th>
<td>
<a href="{{route('profile.view', $table->owner->name)}}">
{{ $table->owner->handle }}
</a>
</td>
</tr>
<tr> <tr>
<th class="text-right pr-2">License</th> <th class="text-right pr-2">License</th>
<td>{{ $table->license ?: 'CC0' }}</td> <td>{{ $table->license ?: 'CC0' }}</td>

Loading…
Cancel
Save