From 1c3f2e7ec8e397d9d48e35e254b2595a0764e8e0 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 30 Dec 2019 15:49:59 +0800 Subject: [PATCH] fix style error for add_file --- app/assets/stylesheets/seminar.css | 18 ++++++++++++++++++ app/assets/stylesheets/seminar.css.scss | 3 --- app/views/seminars/add_file.html.erb | 1 + app/views/seminars/edit_file.html.erb | 1 + 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/assets/stylesheets/seminar.css delete mode 100644 app/assets/stylesheets/seminar.css.scss diff --git a/app/assets/stylesheets/seminar.css b/app/assets/stylesheets/seminar.css new file mode 100644 index 0000000..cb2b874 --- /dev/null +++ b/app/assets/stylesheets/seminar.css @@ -0,0 +1,18 @@ +@media (max-width:767px){ + .form-group{ + justify-content:flex-start !important; + flex-wrap: wrap; + &>span{ + padding-left: 0.7em; + &>br{ + display:none; + } + } + &>.col-sm-10.controls{ + width:100%; + textarea{ + min-height: 8em; + } + } + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/seminar.css.scss b/app/assets/stylesheets/seminar.css.scss deleted file mode 100644 index d0f9802..0000000 --- a/app/assets/stylesheets/seminar.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the seminar controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/views/seminars/add_file.html.erb b/app/views/seminars/add_file.html.erb index 66bbb53..efeb748 100644 --- a/app/views/seminars/add_file.html.erb +++ b/app/views/seminars/add_file.html.erb @@ -1,5 +1,6 @@ <% # encoding: utf-8 %> <%= stylesheet_link_tag "lib/jquery-ui-1.12.1/jquery-ui.min.css" %> +<%= stylesheet_link_tag "seminar" %> <%= javascript_include_tag 'basic.js' %> <% @@session = session %> <%= yield %> diff --git a/app/views/seminars/edit_file.html.erb b/app/views/seminars/edit_file.html.erb index 99f37eb..7185a46 100644 --- a/app/views/seminars/edit_file.html.erb +++ b/app/views/seminars/edit_file.html.erb @@ -1,5 +1,6 @@ <% # encoding: utf-8 %> <%= stylesheet_link_tag "lib/jquery-ui-1.12.1/jquery-ui.min.css" %> +<%= stylesheet_link_tag "seminar" %> <%= javascript_include_tag 'basic.js' %> <% @@session = session %> <%= yield %>