Skip to content

Add forum styles into basic.blade.php #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions views/layouts/basic.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@php
$primaryColor = $settings->get('theme_primary_color', '#000');
$time = time();
@endphp

<!DOCTYPE html>
Expand All @@ -9,18 +10,9 @@
{{-- TODO: Change below to @hasSection when Laravel is upgraded --}}
<title>@if ($__env->hasSection('title')) @yield('title') - @endif{{ $settings->get('forum_title') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="/assets/forum.css?t={{$time}}">

<style>
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 18px;
text-align: center;
line-height: 1.5;
color: #333;
}
input,
button,
select,
Expand All @@ -31,7 +23,6 @@
}
a {
cursor: pointer;
color: {{ $primaryColor }};
text-decoration: none;
font-weight: bold;
}
Expand All @@ -46,8 +37,6 @@
.button {
display: inline-block;
padding: 15px 25px;
background: {{ $primaryColor }};
color: #fff;
text-decoration: none;
text-align: center;
vertical-align: middle;
Expand All @@ -60,10 +49,6 @@
.button:hover {
text-decoration: none;
}
.button:active,
.button.active {
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.form {
max-width: 300px;
margin: 0 auto;
Expand All @@ -77,15 +62,9 @@
width: 100%;
text-align: center;
padding: 15px 20px;
background-color: #fff;
border: 2px solid #eee;
border-radius: 4px;
transition: border-color .15s;
}
.form-control:focus,
.form-control.focus {
border-color: {{ $primaryColor }};
}
.errors {
color: #d83e3e;
}
Expand Down