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: 0 2px 3px rgba(black, .3);
}
.small2 {
font-size: 70%;
}

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

@ -7,8 +7,16 @@
@endphp
@section('content')
<div class="row justify-content-center">
<h2>{{ $table->title }}</h2>
<div class="row justify-content-start px-3">
<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 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>
<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>
<th class="text-right pr-2">License</th>
<td>{{ $table->license ?: 'CC0' }}</td>

Loading…
Cancel
Save