diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss index 647c23fd8..5a89bd87e 100644 --- a/app/assets/stylesheets/my_modules/protocols/index.scss +++ b/app/assets/stylesheets/my_modules/protocols/index.scss @@ -15,26 +15,28 @@ } .module-header { - padding-top: 15px !important; + display: inline-block; + position: relative; + width: 100%; - .first-row { - max-height: 40px; + .header-container { + display: flex; + flex-wrap: wrap; + float: left; + width: calc(100% - 180px); - .date-block { - max-width: 250px; + .flex-block { + display: flex; + flex-grow: 1; } + } - div { - height: 45px; - } + .complete-button-container { + float: right; + width: 165px; - .complete-button-container { - float: right; - max-width: 165px; - - .my_module-state-buttons { - padding-top: 0; - } + .my_module-state-buttons { + padding-top: 0; } } @@ -51,25 +53,42 @@ padding-right: 5px; + .well-sm { - margin-left: 32px; + margin-bottom: 10px; + margin-left: 0; } } + .module-description { + float: left; + padding-left: 10px; + width: 100%; + } + .module-tags { + float: left; + width: 100%; + + #module-tags { + display: flex; + flex-wrap: wrap; + width: 100%; + } + + .badge-icon { + line-height: 32px; + padding: 0 5px 0 10px; + } .tags-title { line-height: 32px; } - .badge-icon { - line-height: 32px; - padding: 9px 5px 9px 10px; - } - .select-container { - float: right; + display: flex; + flex-basis: 100px; + flex-grow: 1; + flex-shrink: 1; position: relative; - width: calc(100% - 35px); select { display: none; diff --git a/app/views/my_modules/_module_header.html.erb b/app/views/my_modules/_module_header.html.erb index 7a9183f41..bef668a94 100644 --- a/app/views/my_modules/_module_header.html.erb +++ b/app/views/my_modules/_module_header.html.erb @@ -1,5 +1,5 @@ -
-
+
+
@@ -9,7 +9,7 @@
-
@@ -39,11 +39,9 @@
-
- <%= render partial: "my_modules/state_buttons.html.erb" %> -
-
+ +
@@ -55,20 +53,23 @@
-
-
+ +
+ <%= render partial: "my_modules/state_buttons.html.erb" %> +
+ +
+
-
- - <%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: can_manage_module?(@my_module) } %> -
+ + <%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: can_manage_module?(@my_module) } %>
-
-
+ +

<%= t('my_modules.module_header.description_label') %>

@@ -84,7 +85,6 @@ <%= t('my_modules.module_header.no_description') %> <% end %>
-