css

ActionController::RoutingError (No route matches [GET] "/assets/javascripts

馋奶兔 提交于 2021-02-10 05:01:18
问题 I am running a development server and I'm trying to load some static pages and files (images, css and javasripts) in my rails application for testing. (In general, I'm new in rails. The Rails installation has been done on Linux subsystem in Windows 10). Although I have placed the files in assets/images , assets/javascripts and assets/stylesheets I couldn't manage to read these files in my test apprication when server runs. I receive the following errors almost for all files I have added:

ActionController::RoutingError (No route matches [GET] "/assets/javascripts

醉酒当歌 提交于 2021-02-10 05:00:57
问题 I am running a development server and I'm trying to load some static pages and files (images, css and javasripts) in my rails application for testing. (In general, I'm new in rails. The Rails installation has been done on Linux subsystem in Windows 10). Although I have placed the files in assets/images , assets/javascripts and assets/stylesheets I couldn't manage to read these files in my test apprication when server runs. I receive the following errors almost for all files I have added:

onMouseEnter and onMouseLeave not functioning as expected

余生颓废 提交于 2021-02-10 04:55:11
问题 I'm trying to simulate a hover effect for my component. However, the onMouseEnter / Leave events are not working as expected, right now I'm trying to get it to simply console.log a string to check that its working but nothing is happening. The aim is that I can change its background color on hover; I tried setting this through a CSS class:hover but to no avail. How do I get the OnMouseEnter / onMouseLeave to function properly? here's the code: import React from "react" import ReactDOM from

Position text in a CSS grid over an image

拈花ヽ惹草 提交于 2021-02-10 04:54:42
问题 I have a CSS grid where I need to place some text over an image. Below is shown the code I use without text over the image. .sbp-item12 { grid-row: 6 / 7; grid-column: 9/13; height: 250px; } <div class="sbp-item12"> <a href="#"> <h3>Here is a headline</h3> <figure> <img src="https://placehold.it/380x250"> </figure> </a> </div> I tried to add the following to the code, but then the text is going in the bottom of my page, and is not staying inside the grid item. Does anybody have an idea how I

Trying to create this css ribbon. Struggling with the curve of the ribbon

只谈情不闲聊 提交于 2021-02-10 04:30:42
问题 I've tried to create this css shape (ribbon) using border radius but I'm unable to do so, the curve I'm able to get isn't exactly matching the div's curve in the image. background: #008712; width: 89px; height: 22px; box-shadow: #d0dae0; background-color: #008712; border-bottom-left-radius: 70px; } If I get this curve right that solves the problem, I would like avoid svgs if possible. 回答1: Use pseudo element with some skew transformation: .box { width:200px; padding:8px; font-size:25px; color

Trying to create this css ribbon. Struggling with the curve of the ribbon

為{幸葍}努か 提交于 2021-02-10 04:29:29
问题 I've tried to create this css shape (ribbon) using border radius but I'm unable to do so, the curve I'm able to get isn't exactly matching the div's curve in the image. background: #008712; width: 89px; height: 22px; box-shadow: #d0dae0; background-color: #008712; border-bottom-left-radius: 70px; } If I get this curve right that solves the problem, I would like avoid svgs if possible. 回答1: Use pseudo element with some skew transformation: .box { width:200px; padding:8px; font-size:25px; color

How do I give a flex item 100% width?

蹲街弑〆低调 提交于 2021-02-10 04:18:02
问题 I am practicing responsive web design, and using flex. The problem is, I want to make the width of the .menu li 100% when the screen is smaller than 768px, so I tried to give .menu ul and .menu li width: 100%. But it doesn't work. I also tried flex: 0 0 100% but nothing happened. How do I make the .menu li 100%? * { box-sizing: border-box; } nav ul, .outline ul { list-style-type: none; margin: 0; padding: 0; } /*common*/ /*layout*/ .container { max-width: 900px; margin: 0; } .outline { flex:

How do I give a flex item 100% width?

喜夏-厌秋 提交于 2021-02-10 04:16:57
问题 I am practicing responsive web design, and using flex. The problem is, I want to make the width of the .menu li 100% when the screen is smaller than 768px, so I tried to give .menu ul and .menu li width: 100%. But it doesn't work. I also tried flex: 0 0 100% but nothing happened. How do I make the .menu li 100%? * { box-sizing: border-box; } nav ul, .outline ul { list-style-type: none; margin: 0; padding: 0; } /*common*/ /*layout*/ .container { max-width: 900px; margin: 0; } .outline { flex:

How do I give a flex item 100% width?

为君一笑 提交于 2021-02-10 04:16:48
问题 I am practicing responsive web design, and using flex. The problem is, I want to make the width of the .menu li 100% when the screen is smaller than 768px, so I tried to give .menu ul and .menu li width: 100%. But it doesn't work. I also tried flex: 0 0 100% but nothing happened. How do I make the .menu li 100%? * { box-sizing: border-box; } nav ul, .outline ul { list-style-type: none; margin: 0; padding: 0; } /*common*/ /*layout*/ .container { max-width: 900px; margin: 0; } .outline { flex:

How do I give a flex item 100% width?

佐手、 提交于 2021-02-10 04:13:30
问题 I am practicing responsive web design, and using flex. The problem is, I want to make the width of the .menu li 100% when the screen is smaller than 768px, so I tried to give .menu ul and .menu li width: 100%. But it doesn't work. I also tried flex: 0 0 100% but nothing happened. How do I make the .menu li 100%? * { box-sizing: border-box; } nav ul, .outline ul { list-style-type: none; margin: 0; padding: 0; } /*common*/ /*layout*/ .container { max-width: 900px; margin: 0; } .outline { flex: