Skip to content

Commit

Permalink
Added 'lang_start' into personal form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Mikolas committed Feb 20, 2023
1 parent b1c935b commit 8b9b648
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 154 deletions.
39 changes: 39 additions & 0 deletions database/migrations/2023_02_20_195717_add_lang_start_to_users.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

class AddLangStartToUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
DB::statement('SET FOREIGN_KEY_CHECKS = 0;');
DB::statement('TRUNCATE TABLE user_test_cards;');
DB::statement('TRUNCATE TABLE user_tests;');
DB::statement('TRUNCATE TABLE users;');
DB::statement('SET FOREIGN_KEY_CHECKS = 1;');

$table->integer('lang_start')->after('lang_level');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('lang_start');
});
}
}
107 changes: 107 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,47 @@ html {
left: 0px;
z-index: 11;
}
.tooltip {
position: relative;
display: inline-block;
--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px));
text-align: center;
--tooltip-tail: 3px;
--tooltip-color: hsl(var(--n));
--tooltip-text-color: hsl(var(--nc));
--tooltip-tail-offset: calc(100% + 1px - var(--tooltip-tail));
}
.tooltip:before {
position: absolute;
pointer-events: none;
content: attr(data-tip);
max-width: 20rem;
border-radius: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
font-size: 0.875rem;
line-height: 1.25rem;
background-color: var(--tooltip-color);
color: var(--tooltip-text-color);
width: -moz-max-content;
width: max-content;
}
.tooltip:before, .tooltip-top:before {
transform: translateX(-50%);
top: auto;
left: 50%;
right: auto;
bottom: var(--tooltip-offset);
}
.tooltip-right:before {
transform: translateY(-50%);
top: 50%;
left: var(--tooltip-offset);
right: auto;
bottom: auto;
}
.btn-outline .badge {
--tw-border-opacity: 1;
border-color: hsl(var(--nf, var(--n)) / var(--tw-border-opacity));
Expand Down Expand Up @@ -2606,6 +2647,48 @@ html {
opacity: 1;
}
}
.tooltip:before,
.tooltip:after {
opacity: 0;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-delay: 100ms;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.tooltip:after {
position: absolute;
content: "";
border-style: solid;
border-width: var(--tooltip-tail, 0);
width: 0;
height: 0;
display: block;
}
.tooltip.tooltip-open:before,
.tooltip.tooltip-open:after,
.tooltip:hover:before,
.tooltip:hover:after {
opacity: 1;
transition-delay: 75ms;
}
.tooltip:after, .tooltip-top:after {
transform: translateX(-50%);
border-color: var(--tooltip-color) transparent transparent transparent;
top: auto;
left: 50%;
right: auto;
bottom: var(--tooltip-tail-offset);
}
.tooltip-right:after {
transform: translateY(-50%);
border-color: transparent var(--tooltip-color) transparent transparent;
top: 50%;
left: calc(var(--tooltip-tail-offset) + 1px);
right: auto;
bottom: auto;
}
.btn-xs {
height: 1.5rem;
padding-left: 0.5rem;
Expand Down Expand Up @@ -2810,6 +2893,9 @@ html {
.whitespace-normal {
white-space: normal;
}
.whitespace-nowrap {
white-space: nowrap;
}
.whitespace-pre-wrap {
white-space: pre-wrap;
}
Expand Down Expand Up @@ -3067,6 +3153,10 @@ html {
position: static;
}

.tooltip.tooltip-open:before, .tooltip.tooltip-open:after, .tooltip:hover:before, .tooltip:hover:after {
white-space: pre-line;
}

/*~~~~~~ SPINNERs */
.lds-grid {
display: inline-block;
Expand Down Expand Up @@ -3265,6 +3355,14 @@ html {
padding-bottom: 5rem;
}

.sm\:tooltip-top:before {
transform: translateX(-50%);
top: auto;
left: 50%;
right: auto;
bottom: var(--tooltip-offset);
}

.sm\:shadow-xl {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
Expand Down Expand Up @@ -3308,6 +3406,15 @@ html {
overflow: hidden;
border-radius: inherit;
}

.sm\:tooltip-top:after {
transform: translateX(-50%);
border-color: var(--tooltip-color) transparent transparent transparent;
top: auto;
left: 50%;
right: auto;
bottom: var(--tooltip-tail-offset);
}
}
@media (min-width: 768px) {

Expand Down
Loading

0 comments on commit 8b9b648

Please sign in to comment.