Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add mobile styles

Inga Mai31057f3b7d7f
diff --git a/app/views/layouts/styleguide/styleguide.layout.html.erb b/app/views/layouts/styleguide/styleguide.layout.html.erb
index 4ae90130feb..1b9c148673b 100644
--- a/app/views/layouts/styleguide/styleguide.layout.html.erb
+++ b/app/views/layouts/styleguide/styleguide.layout.html.erb
@@ -123,6 +123,22 @@
display: block;
font-size: 30px;
}
+
+ /* Tablet screen size */
+ @media only screen and (max-width: 1210px) {
+ body {
+ max-width: unset;
+ margin: 0 1rem;
+ transition: all 0.4s;
+ }
+ }
+
+ /* Mobile screen size */
+ @media only screen and (max-width: 679px) {
+ .styleguide-banner {
+ padding: 25% 0 0;
+ }
+ }
</style>
</head>
<body class="lsg">