flexbox

How can I make box shadow show over the next element in a container?

戏子无情 提交于 2021-01-27 12:00:09
问题 Please see this code: http://codepen.io/Varin/pen/kkGgVd <div class="container"> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> </div> And CSS $color1 : rgba(123,223,12,0.66); $color2 : rgba(23,43,122,0.66); body { box-sizing: border-box; background-color: #222222; display:flex; flex

How can I make box shadow show over the next element in a container?

时光怂恿深爱的人放手 提交于 2021-01-27 11:57:36
问题 Please see this code: http://codepen.io/Varin/pen/kkGgVd <div class="container"> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> <div class="outside2"> <div class="inside2"> <span class="text"></span> </div> </div> </div> And CSS $color1 : rgba(123,223,12,0.66); $color2 : rgba(23,43,122,0.66); body { box-sizing: border-box; background-color: #222222; display:flex; flex

margin with flex wrap

纵饮孤独 提交于 2021-01-27 04:52:21
问题 I am trying to add some spacing between the divs using display: flex and flex-wrap: wrap . The problem is that when I apply margin-right to the second item, the row breaks. How can I add some spacing between the items without breaking them in 2 rows? jsFiddle * { box-sizing: border-box; } // Default // ---------------------------------------------------- .collage { position: relative; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }

Fixed width child is shrinking in flexbox [duplicate]

白昼怎懂夜的黑 提交于 2021-01-26 08:32:57
问题 This question already has answers here : What are the differences between flex-basis and width? (5 answers) Closed 3 years ago . I'm using display:flex for the first time. You find a codepen here: https://codepen.io/chrispillen/pen/GEYpRg .node:not(.branch) { width: auto; height: 100px; background: red; margin-bottom: 1px; } .node.branch, .node.branch .body { width: auto; overflow: hidden; } .node.branch .leaf { width: 100%; height: 100px; background: blue; } .node.branch .body { width: 100%;

Fixed width child is shrinking in flexbox [duplicate]

落爺英雄遲暮 提交于 2021-01-26 08:32:22
问题 This question already has answers here : What are the differences between flex-basis and width? (5 answers) Closed 3 years ago . I'm using display:flex for the first time. You find a codepen here: https://codepen.io/chrispillen/pen/GEYpRg .node:not(.branch) { width: auto; height: 100px; background: red; margin-bottom: 1px; } .node.branch, .node.branch .body { width: auto; overflow: hidden; } .node.branch .leaf { width: 100%; height: 100px; background: blue; } .node.branch .body { width: 100%;

h5仿微信聊天(高仿版)、微信聊天表情|对话框|编辑器

北城余情 提交于 2021-01-23 23:53:34
之前做过一版h5微信聊天移动端,这段时间闲来无事就整理了下之前项目,又重新在原先的那版基础上升级了下,如是就有了现在的h5仿微信聊天高仿版,新增了微聊、通讯录、探索、我四个模块 左右触摸滑屏切换,聊天页面优化了多图预览、视频播放,长按菜单UI,聊天底部编辑器重新优化整理(新增多表情),弹窗则用到了自己开发的wcPop.js,具体看项目效果图吧! html代码片段: <!-- //微聊底部功能面板 --> < div class ="wc__footTool-panel" > <!-- 输入框模块 --> < div class ="wc__editor-panel wc__borT flexbox" > < div class ="wrap-editor flex1" >< div class ="editor J__wcEditor" contenteditable ="true" ></ div ></ div > < i class ="btn btn-emotion" ></ i > < i class ="btn btn-choose" ></ i > < button class ="btn-submit J__wchatSubmit" > 发送 </ button > </ div > <!-- 表情、选择模块 --> < div class ="wc__choose

React17+React Hook+TS4 最佳实践 仿 Jira 企业级项目

送分小仙女□ 提交于 2021-01-21 21:03:33
download: React17+React Hook+TS4 最佳实践 仿 Jira 企业级项目 React17 + React Hook + TypeScript4 已成为大型React 项目质量保证的代名词,更是 2021年优秀 React 开发者必备的技术。本课程将通过完成一个功能强大的任务管理项目,带领大家掌握最佳实践,全方位提升开发效率、开发质量和技术能力。 技术要求 有 React 基础 环境参数 React 17.0.1 / TypeScript 4.0.5 / react-router : 6.0.0 / create-react-app 4.0.1 react-query: 1.0.0 / emotion: 10.0.35 / cypress: 6.1.0 / jest: 26.6.3 章节目录: 第一章课程介绍(本课程是必看的)试看 介绍了课程整体的背景知识、能解决什么问题、学习后能得到什么、学习方法和学习前提。 总共保存2节(12分钟)列表 1-1课程指南(11:06 )试试 下载1-2课程源 第二章项目出航:项目初始化与配置 本章介绍Create-React-App初始化项目。 然后,构成eslint检查代码质量、prettier检查代码格式、commitlint检查提交信息,规范流程。 最后配置优秀的后端mock方案,在JSON SERVER第3

webkit box vs boxflex

∥☆過路亽.° 提交于 2021-01-20 19:23:38
问题 I recently ran across a tutorial where the instructor used this syntax: display: -webkit-box; http://www.youtube.com/watch?v=B-MNkBh7F2A @ 2:30 (created aug 2012) I hadn't seen this before and began trying to find some info on it. It seems CSS3 has something called flexbox. But I couldn't find references the above syntax. In this article http://coding.smashingmagazine.com/2011/09/19/css3-flexible-box-layout-explained/, written a year before the above tutorial (sept 2011), they use this syntax

How to make a HTML5 canvas fit dynamic parent/flex box container

隐身守侯 提交于 2021-01-20 19:01:11
问题 Is there a way I can create a canvas inside a dynamic re-sizing flex-box container? Preferably a CSS only solution but I think JavaScript is required for redraw? I think one solution could be to listen to the re-sizing event and then scale the canvas to meet the size of the flex box parent then force a redraw but I would preferably like to use as much CSS as possible or a more clean/less code solution. The current approach is CSS based where the canvas is re-sized according to the parent flex

How to make a HTML5 canvas fit dynamic parent/flex box container

瘦欲@ 提交于 2021-01-20 19:00:28
问题 Is there a way I can create a canvas inside a dynamic re-sizing flex-box container? Preferably a CSS only solution but I think JavaScript is required for redraw? I think one solution could be to listen to the re-sizing event and then scale the canvas to meet the size of the flex box parent then force a redraw but I would preferably like to use as much CSS as possible or a more clean/less code solution. The current approach is CSS based where the canvas is re-sized according to the parent flex